I'm using some gradient code to paint my dialog background in the WM_PAINT event. I'm using the code below to color the labels
When my dialog comes up the background is gradient from rgb(202,214,255) down to white but the label background is rgb(202,214,255). If I click a button, the label background turns to the shade of the gradient at that position on the screen which is the way I want it to start out.
I would like the label background to be transparent, showing the shade behind it from initialization. I would also like to try making the label background itself a gradient but will probably have to subclass the control to do that.
Bob Mechler
Code:
CASE %WM_CTLCOLORSTATIC SELECT CASE GetDlgCtrlID(CBLPARAM) CASE 500 TO 1500 SetBkMode CBWPARAM, %Transparent SelectObject CBWPARAM, hFontCap FUNCTION = GetStockObject(%NULL_BRUSH)
I would like the label background to be transparent, showing the shade behind it from initialization. I would also like to try making the label background itself a gradient but will probably have to subclass the control to do that.
Bob Mechler
Comment