如果不是自绘的话,响应WM_MEASUREITEM消息就可以了 改变下面结构的值就行了 typedef struct tagMEASUREITEMSTRUCT { // mis UINT CtlType; // type of control UINT CtlID; // combo box, list box, or button identifier UINT itemID; // menu item, variable-height list box, // or combo box identifier UINT itemWidth; // width of menu item, in pixels UINT itemHeight; // height of single item in list box menu, 《--这就是行高 // in pixels DWORD itemData; // application-defined 32-bit value } MEASUREITEMSTRUCT;
改变下面结构的值就行了
typedef struct tagMEASUREITEMSTRUCT { // mis
UINT CtlType; // type of control
UINT CtlID; // combo box, list box, or button identifier
UINT itemID; // menu item, variable-height list box,
// or combo box identifier
UINT itemWidth; // width of menu item, in pixels
UINT itemHeight; // height of single item in list box menu, 《--这就是行高
// in pixels
DWORD itemData; // application-defined 32-bit value
} MEASUREITEMSTRUCT;
http://vcer.net/1046595482643.html
SetFont