New Member

Group: Members
Posts: 1
Member No.: 11097
Joined: 10-August 08

|
Hiya, when changing an existing resource file of a Dialogbox for example, wich contains a bitmap, the resource is saved incorrect. after apllying changes, the bitmap wont be vieuwed... I will past some lines to show what i mean
| CODE | #define IDB_BITMAP 1010 #define ID_ICON 1034 #define ID_ICON_2 1035
IDB_BITMAP BITMAP DISCARDABLE "Res/my_cool_bitmap.bmp" ID_ICON ICON DISCARDABLE "Res/Monk.ico" ID_ICON_2 ICON DISCARDABLE "Res/Greenman.ico"
IDD_DIALOG1 DIALOGEX 6,6,206,169 CAPTION "Some Dialog" FONT 8,"MS Sans Serif" STYLE 0x80c80848 EXSTYLE 0x00000000 BEGIN CONTROL IDB_BITMAP,IDC_IMG1,"Static",0x5000020e,6,7,194,83,0x00000008 .... ....
|
above code works... , but now when i apply changes with the visual resource editor the last line ( ' IDB_BITMAP,IDC_...... ') Will be saved as below:
| CODE | CONTROL "IDB_BITMAP",IDC_IMG1,"Static",0x5000020e,6,7,194,83,0x00000008
|
now after compiling the bitmap is *NOT* displayed, and i have to remove the " before and after IDB_BITMAP using text edit Ofcoz its not a real big deal, but i thought you would like to know  greetz: glAsh
|