propertysheet 加控件如何控制字体和响应消息
在PropertySheet中加入了一个按钮, 如何在按钮上加入指定字体的字符, 以及如何响应按钮的点击消息. 谢谢
代码如下:
CRect rect;
int nHeight = 24;
int nWidth = 80;
int nOffset = 6;
GetClientRect (&rect);
int nX = rect.left + nOffset;
int nY = rect.top + (rect.Height() - nHeight) - nOffset;
// finally create the edit control
m_Restart.CreateEx (WS_EX_CLIENTEDGE, _T("BUTTON"), "Restart",
WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,
nX, nY, nWidth, nHeight, m_hWnd, 0, 0 );