----- Original Message -----
From: "Benedict Walmisley" <bwa...@bt...>
To: <gam...@li...>
Sent: Friday, October 19, 2001 5:53 AM
Subject: Re: [GD-Windows] dialogbox color
You want to handle the WM_CTLCOLOR* messages. This allows your dialog
process to adjust the colours used within various parts of the dialogbox.
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.
HTH
Benedict
-- Yup.
-- If you change the background colors, you may want to specify your
foreground and text colors as well, even if it looks legible on your system
without setting them.
-- Since the user can customize to a different scheme, you can't assume
their choice of foreground and text colors would be "typical" or "readable"
with your choice of background.
-- Better to set the entire scheme than just the colors you have in mind
(that goes with the "normal" or "default" text and foreground.)
|