|
-
Apr 19th, 2005, 01:34 AM
#1
Thread Starter
Member
Convert form.backcolor value to long?
Hello. I am trying to use the CreateSolidBrush API to give my form's menu a particular color (in my case I just want to set the menu's color to the form's background color - right now the menu is white).
CreateSolidBrush expects a long value for the color. However, the form's .backcolor value in the properties window is some weird system color value, in this case "&H8000000F&". How do I convert this value to the long value I need for the CreateSolidBrush API? Is there another API call I need to use that retrieves the form's background color as a long value?
BTW I'm using VB6.
Many thanks in advance...
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
|