where (in code) would i put lines that would allow me to put a custom background to a menu? what about if i want to change the border of that menus? is that possible? thanks...i just need to know where i would put
thx
Printable View
where (in code) would i put lines that would allow me to put a custom background to a menu? what about if i want to change the border of that menus? is that possible? thanks...i just need to know where i would put
thx
Sorry, I don't think there is a way to retrieve the window handle of the menu (if there is one). MAYBE with a combination of GetMenuRect and ChildWindowFromPoint, but I don't think so.
You could change the system colors to change the background color of a menu but that would apply to ALL programs (and is therefore bad manner).
isn`t there a way to set a background bitmap for the menus though? because i can get the dc of the menu in the drawitemstruct or something, right? isn't there a was to put a bitmap on that dc?
thanks
no, the drawitemstruct is only for single items, not the whole menu
but I wonder what happens when you call WindowFromDC with this dc...
then GetDC
then...
SelectObject(HBITMAP) or maybe DrawState...