Somebody tell me please what is the function of Win Api or way to change: - color - text size and font ot button.
Of a Control, for example check box or pushbutton.
... Other Topic how can change the BackGround color of a created Window.
Sorry, my english is so poor!!!!!!!! :( Thank for all!!!!!
ChoriGlobo
Search this Forum, MSDN, that win32.hlp file (its a dev package) or even Google for the following:
CreateFont WM_SETFONT
WM_PAINT WM_DRAWITEM WM_CTLCOLORSTATIC WM_CTLCOLOREDIT WM_CTLCOLORBTN WM_CTLCOLORGLG WM_CTLCOLORSCROLLBAR WM_CTLCOLORLISTBOX ChooseColor SetBkColor SetBkMode SetTextColor CreateBrushIndirect BeginPaint EndPaint FillRect
If youre familiar with all them youll be able to change the color of anything in your programs from now on.
Note that for changing Text and Background color of a PUSHBUTTON youll have to use Owner Drawn Buttons (search msdn on that).
For CheckBoxes TEXT color and TEXT BG color, you can intercept WM_CTLCOLORSTATIC.
Log in to post a comment.
Somebody tell me please what is the function of Win Api or way to change:
- color
- text size and font ot button.
Of a Control, for example check box or pushbutton.
...
Other Topic
how can change the BackGround color of a created Window.
Sorry, my english is so poor!!!!!!!! :(
Thank for all!!!!!
ChoriGlobo
Search this Forum, MSDN, that win32.hlp file (its a dev package) or even Google for the following:
CreateFont
WM_SETFONT
WM_PAINT
WM_DRAWITEM
WM_CTLCOLORSTATIC
WM_CTLCOLOREDIT
WM_CTLCOLORBTN
WM_CTLCOLORGLG
WM_CTLCOLORSCROLLBAR
WM_CTLCOLORLISTBOX
ChooseColor
SetBkColor
SetBkMode
SetTextColor
CreateBrushIndirect
BeginPaint
EndPaint
FillRect
If youre familiar with all them youll be able to change the color of anything in your programs from now on.
Note that for changing Text and Background color of a PUSHBUTTON youll have to use Owner Drawn Buttons (search msdn on that).
For CheckBoxes TEXT color and TEXT BG color, you can intercept WM_CTLCOLORSTATIC.