Does anyone know how to change de border from a static control in a dialog box, whitout changing the dialog resource code?
Posted on 2002-07-24 09:37:13 by Despero
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:
Posted on 2002-07-24 10:48:00 by NOP-erator
try SetWindowLong
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.
Posted on 2002-07-24 11:14:07 by stryker