BOOL SetDlgItemText( HWND hDlg, // handle to dialog box int nIDDlgItem, // control identifier LPCTSTR lpString // text to set ); hDlg [in] Handle to the dialog box that contains the control. nIDDlgItem [in] Specifies the control with a title or text to be set. lpString [in] Pointer to the null-terminated string that contains the text to be copied to the control.
俺建议你子类化需要设置字体的控件,自己绘制比较方便
HWND hDlg, // handle to dialog box
int nIDDlgItem, // control identifier
LPCTSTR lpString // text to set
);
hDlg
[in] Handle to the dialog box that contains the control.
nIDDlgItem
[in] Specifies the control with a title or text to be set.
lpString
[in] Pointer to the null-terminated string that contains the text to be copied to the control.