Pete Gontier
2007-08-09 23:34:39 UTC
I'm trying and failing to modify a dialog resource in a project I did not
create. Here is the declaration:
IDD_MAFW_DIALOG DIALOGEX 0, 0, 264, 194
STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU |
WS_THICKFRAME
EXSTYLE WS_EX_ACCEPTFILES
CAPTION "Dialog"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
END
Looks pretty vanilla, huh? However, when this resource is compiled into the
executable file, the style field ends up with the value 0xFFFF0001, which is
blatantly wrong. I discovered this upon inspecting this resource in memory,
but it's wrong in the binary file as well.
Attempts to edit this resource with Visual Studio (2005) seem to have no
effect. I can set or clear any bit and still end up with 0xFFFF0001. It's as
if somebody is post-processing all my dialog resources and slamming them
with the bogus value (and of course I checked for that).
Any clues?
Pete Gontier
http://www.m-audio.com/
pete (at) m-audio (dot) com
create. Here is the declaration:
IDD_MAFW_DIALOG DIALOGEX 0, 0, 264, 194
STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU |
WS_THICKFRAME
EXSTYLE WS_EX_ACCEPTFILES
CAPTION "Dialog"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
END
Looks pretty vanilla, huh? However, when this resource is compiled into the
executable file, the style field ends up with the value 0xFFFF0001, which is
blatantly wrong. I discovered this upon inspecting this resource in memory,
but it's wrong in the binary file as well.
Attempts to edit this resource with Visual Studio (2005) seem to have no
effect. I can set or clear any bit and still end up with 0xFFFF0001. It's as
if somebody is post-processing all my dialog resources and slamming them
with the bogus value (and of course I checked for that).
Any clues?
Pete Gontier
http://www.m-audio.com/
pete (at) m-audio (dot) com