|
-
Oct 1st, 2001, 08:15 PM
#1
Thread Starter
Hyperactive Member
menu
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
Amon Ra
The Power of Learning.
-
Oct 2nd, 2001, 08:13 AM
#2
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).
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 2nd, 2001, 09:52 AM
#3
Thread Starter
Hyperactive Member
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
Amon Ra
The Power of Learning.
-
Oct 2nd, 2001, 10:27 AM
#4
no, the drawitemstruct is only for single items, not the whole menu
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 2nd, 2001, 10:30 AM
#5
but I wonder what happens when you call WindowFromDC with this dc...
then GetDC
then...
SelectObject(HBITMAP) or maybe DrawState...
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|