Hi!
Does anyone know how to change de border from a static control in a dialog box, whitout changing the dialog resource code?
thanks
Does anyone know how to change de border from a static control in a dialog box, whitout changing the dialog resource code?
thanks
erm.. you just want to change the border? hmm.. if you want to change the border independent from the background color i don't see any other possibility than drawing the control yourself.
correct me if i'm wrong :grin:
correct me if i'm wrong :grin:
try SetWindowLong
where hWnd is the handle to your static control.
<:: edit again::>
or use GWL_STYLE. just look at MSDN or PSDK there are more options for you to use.
invoke SetWindowLong, hWnd, GWL_EXSTYLE, [you new styles here]
<:: edit ::>
where hWnd is the handle to your static control.
<:: edit again::>
or use GWL_STYLE. just look at MSDN or PSDK there are more options for you to use.