MFC function - ModifyStyle(), how to do this in API?
thx,
MFC function - ModifyStyle(), how to do this in API?
thx,
if you are using MFC then you have the source code for it. Have a look and see how its implemented yourself.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
Investigate the SetWindowLong API with the GWL_STYLE option
oic, thx.
excuse me , i have another qn.
if i want to add style , i do this:
style |= WS_BORDER ;
how to remove style ??
style &= ~WS_BORDER
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
thak you .
i have another question:
i have set the WS_BORDER or else already ,
But nothing happened.
how to make it to change to that style ??
Try following it with a call to SetWindowPos()
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
thank you very much !!Originally posted by Stoned_Coder
Try following it with a call to SetWindowPos()