Brush and Window Color ...
-
Hi there, How can i make a Brush with default window color ?! I just tried below code, but it doesn't work :( :
HBRUSH hBrush = ::GetSysColorBrush( COLOR_WINDOW );
When i use below code to make the brush (with XP default window color), it just works fine (as u see, the i passed the color HANDY (!!), i'm looking for code that make that automatically. ) :confused: :HBRUSH hBrush = CreateSolidBrush( RGB( 236, 233, 210 ) );
I want to use the brush for painting a Static Control (Custom control) background ... (in CtlColor function, ON_WM_CTLCOLOR_REFLECT() msg) Please help :) Regards, Hadi -
Hi there, How can i make a Brush with default window color ?! I just tried below code, but it doesn't work :( :
HBRUSH hBrush = ::GetSysColorBrush( COLOR_WINDOW );
When i use below code to make the brush (with XP default window color), it just works fine (as u see, the i passed the color HANDY (!!), i'm looking for code that make that automatically. ) :confused: :HBRUSH hBrush = CreateSolidBrush( RGB( 236, 233, 210 ) );
I want to use the brush for painting a Static Control (Custom control) background ... (in CtlColor function, ON_WM_CTLCOLOR_REFLECT() msg) Please help :) Regards, HadiYESSS ! The problem has been solved :) ROCK ON !!! :cool: Regards, Hadi
-
YESSS ! The problem has been solved :) ROCK ON !!! :cool: Regards, Hadi
:laugh::laugh::laugh: Now thats what I call a good answer! INTP Every thing is relative...