|
-
April 23rd, 1999, 06:38 AM
#1
static text
hai,
I have a created a static text at runtime
I want to display it above a picture control which is a bitmap.
The text i create should have a same background color that of a bitmap
which doesnot have a uniform color. The color for the static
text i have given in OnCtlColor() even if i use SetBkMode as transparent
it is not workking. Please help me.
regards
satish
-
April 23rd, 1999, 12:34 PM
#2
Re: static text
You also must create a brush with the background color you want and select it into the device context, and then return the brush handle when returning from OnCtlColor. (Also you can be specific for the control you want by getting a pointer for its window from GetDlgCtrlID() using the pWnd given in the params for OnCtlColor().
Michael Cosgrove ([email protected])
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
|