Acmlm's Board - I2 Archive - Programming - Creating a Dialog Resource With No Controls
User | Post |
beneficii
Posts: 213/567 |
When I make this dialog:
IDD_TOOLBAR DIALOGEX DISCARDABLE 0, 0, 0x100, 0x100 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION EXSTYLE WS_EX_TOOLWINDOW CAPTION "Tiles" FONT 8, "MS Sans Serif" BEGIN END
The thing compiles fine, but when I load the EXE it says it's corrupt. When I comment out this piece, the EXE runs fine. Is it because I have no controls in it and there is another way of doing it, or is it something else? (I do not want any controls in my dialog, btw.)
Well, I had added a control, and that same problem still comes up. So I don't know....
EDIT: Never mind, I just realized that the value of IDD_TOOLBAR should not be larger than a word (i.e larger than 0xffff). |
|