I have seen many people here
asking about how to get a bitmap
into a resource menu without doing
it at run time. this is how you
can get one to show with out
any work from your program.
just put this in your resource file.
#include "\masm32\include\resource.h"
900 BITMAP "MyBmp.bmp"
#define IDC_STATIC -1
#define IDC_ABOUT 3000
#define IDC_EXIT 3001
IDD_DIALOG1 DIALOG DISCARDABLE 10, 10, 274, 109
STYLE DS_MODALFRAME | DS_3DLOOK | DS_CENTER | WS_MINIMIZEBOX | WS_VISIBLE |
WS_CAPTION | WS_SYSMENU | WS_POPUP
CAPTION "Bmp Demo"
FONT 8, "MS Sans Serif"
BEGIN
PUSHBUTTON "&About", IDC_ABOUT,45,73,52,13, 0, , 0
PUSHBUTTON "E&xit", IDC_EXIT,133,73,52,13, 0, , 0
CONTROL 900, IDC_STATIC, "Static", SS_BITMAP | SS_SUNKEN, 4,2,226,63, , 0
END
Then just invoke your Dialog menu in your
program using invoke DialogBoxParam, hInst,addr MainDlgName,NULL,addr DlgProc,NULL
I hope this is of any use to anyone here...
This message was edited by Zcoder, on 3/5/2001 3:30:01 AM