I've checked out all of those before. Actually I believe I spent about 10-15 hours
trying and searching - unfortunately none of this helped with the problems I have.
GDI sucks big time.

For a dialog without a caption use WS_POPUP and make sure you don't specify a
caption (window name) in the resource and if you create it with CreateDialogParam
don't specify a window name either. Instead use WM_SETTEXT to set the title.
I think SetWindowTitle may also not be used.


Posted on 2002-08-11 15:43:13 by goofee
Ops, I didn't know you already read them. I don't remember where but IIRC I saw a piece of code which remove the caption bar at 'run time' during the WM_INITDIALOG, but I think your method is more easy.
Posted on 2002-08-11 16:04:12 by LuHa
in the win32api i've read, that i can't set the MF_OWNERDRAW flag in the resource, so i've written a proc to set it on a whole menu's items. EVERY function succeeds but Get-/SetMenuItemInfo DON'T ! here's the code:

invoke GetMenu,wParam
mov dc,eax
invoke GetMenuItemCount,eax
mov buf[0],al
next_submenu: ; process all submenus
dec buf[0]
invoke GetSubMenu,dc,buf[0]
mov brush,eax
invoke GetMenuItemCount,brush
mov buf[1],al
next_item: ;process all items
dec buf[1]
invoke GetMenuItemInfo,brush,buf[1],TRUE,addr mii ; <-- dunno where's the mistake. returns NULL, GetLastError too...
or mii.fType,MFT_OWNERDRAW
invoke SetMenuItemInfo,brush,buf[1],TRUE,addr mii
movzx eax,buf[1]
test eax,eax
jnz next_item
movzx eax,buf[0]
test eax,eax
jnz next_submenu

further, can i set this flag to the popups themselves too? i hope so, it would look ugly...

i haven't tried the method to prevent the caption, goofee, but it sounds working :)
but you could post your code too, LuHa, if goofee's doesn't work
Posted on 2002-08-12 13:58:25 by hartyl