Click to See Complete Forum and Search --> : static text


April 23rd, 1999, 06:38 AM
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
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 (cozmotion@aol.com)