I followed the second tutorial for radasm on the website, I did Project/Resource and added my bitmap. On my dialog, there is a static control I want to place it in - and add the bitmap statically. This will be a logo displayed on my main dialog window.

I tried this but I am not doing something right:



invoke LoadBitmap,hInstance,3000
mov hBmp,eax
invoke SendMessage,IDD_DLG1,STM_SETIMAGE,IMAGE_BITMAP,hBmp


This is in my resource file:


#define IDC_LOGO 3000
IDC_LOGO BITMAP DISCARDABLE "Res/ident.bmp"
Posted on 2004-12-21 17:36:41 by drarem
sorry, I did it the manual way.. how is it done in the .RC file, I haven't seen any bitmap controls you can add using radasm's resource editor?



invoke LoadBitmap,hInstance,3000
mov hBmp,eax

invoke CreateWindowEx,WS_EX_CONTROLPARENT,
addr staticClass,NULL,WS_CHILD Or WS_VISIBLE Or SS_BITMAP,
50,12,233,48,hWin,NULL,hInstance,NULL

invoke SendMessage,eax,STM_SETIMAGE,IMAGE_BITMAP,hBmp

Posted on 2004-12-21 18:22:24 by drarem
Hi drarem

Use the image control and set Type to bitmap. Then use the controls image property to browse for the bitmap file.

KetilO
Posted on 2004-12-22 02:53:21 by KetilO
wow, I didn't see that.. thank you :) Now I know both ways, the fun part is not having to ask this question again in the future.
Posted on 2004-12-24 11:15:24 by drarem