nanogui: Changing button face colors
Subject:
Re: Changing button face colors
From:
"Greg Haerr" ####@####.####
Date:
13 Sep 2000 02:45:41 -0000
Message-Id: <041b01c01d2d$4216faf0$6817dbd0@censoft.com>
: Could someone give me a hint on how to change the color of a button?.
At this point, you will need to modify the button object which
is located in microwin/src/mwin/winlib/button.c. This code should
send, according to win32, a WM_CTLCOLORBUTTON message
to it's parent for which returns a new color rather than 0 for
a non-default color. Otherwise, you should modify the buttons'
WM_PAINT routine, where you will find that the button object
gets it's color from the src/mwin/wingdi.c GetSysColor themes.
In any case, button colors can't be changed from the CreateWindowEx
call directly.
Regards,
Greg
I can
: capture the click event but couldn't find a way to access the button
: properties for changing the color. Below is the code I use to create my
: button:
: Any hints are deeply appreciated.
:
:
: CreateWindowEx(0L, "BUTTON","CKT ID",
: BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE,
:
: LF+iXborder+((iXnumbtns/2)*iBtnWD)+iCol1WD,TP,iCol2WD,iBtnHT,
: hwnd,(HMENU) ind /*(HMENU)EVENTBTN*/, NULL, NULL);
:
:
:
:
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
:
: