Re: [GD-Windows] dialogbox color
Brought to you by:
vexxed72
From: <bwa...@bt...> - 2001-10-19 10:54:02
|
You wrote: >hi, > >VC6 doesn't seem to have built in ability to change the color of a = dialog >box.. >Does anyone know of a way? perhaps something to be added in the = script.rc >file, >or even a sendmessage() command? You want to handle the WM_CTLCOLOR* messages. This allows your dialog process to adjust the colours used within various parts of the dialogbox.= =20 IE WM_CTLCOLORBTN WM_CTLCOLORDLG WM_CTLCOLOREDIT WM_CTLCOLORLISTBOX WM_CTLCOLORMSGBOX WM_CTLCOLORSCROLLBAR WM_CTLCOLORSTATIC To handle the dialogbox background you need to handle the WM_CTLCOLORDLG message.=20 HTH Benedict -- Reality is Insanity |