I don't know how to change font and color of a combo box,anyone help? thanks
I've some code for changing the font:
This is the structure LOGFONT:
[color=chocolate]
LF LOGFONT <-12,0,0,0,400,0,0,0,0,1,2,1,49,"Arial">
invoke CreateFontIndirect, ADDR LF
invoke SendMessage, hComboBox, WM_SETFONT, eax, TRUE
[/color]
This is the structure LOGFONT:
[color=chocolate]
LOGFONT STRUCT
lfHeight DWORD ?
lfWidth DWORD ?
lfEscapement DWORD ?
lfOrientation DWORD ?
lfWeight DWORD ?
lfItalic BYTE ?
lfUnderline BYTE ?
lfStrikeOut BYTE ?
lfCharSet BYTE ?
lfOutPrecision BYTE ?
lflfClipPrecision BYTE ?
lfQuality BYTE ?
lfPitchAndFamily BYTE ?
lfFaceName BYTE 32 dup(?)
LOGFONT ENDS
[/color]
Use WM_CTLCOLORLISTBOX message to specify colour of your combobox.