METHOD CtlColor( hWndChild, hDCChild ) CLASS TComboBox
if lAnd( GetWindowLong( ::hWnd, GWL_STYLE ), CBS_DROPDOWN )
SetTextColor( hDCChild, ::nClrText )
SetBkColor( hDCChild, ::nClrPane )
::hBkBrush = CreateSolidBrush( ::nClrPane )
return ::hBkBrush
endif
return nil
Antonio Linares wrote:Enrico,
Excellent, Master
What do you use ::hBkBrush for ? -you always call CreateSolidBrush()-
Antonio Linares wrote:Enrico,
If you call CreateSolidBrush() always, then you can dinamically change the color of the control on the run.
James Bott wrote:Antonio,
So, are you suggesting we just do:
return CreateSolidBrush( ::nClrPane )
instead?
James
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 95 guests