CEdit 类的SetSel函数,选中全部SetSel(0, -1)
判断组合键按下: pMsg->wParam == 0x41 && ::GetKeyState(VK_CONTROL)&0x80
隐藏 CPropertyPage类的应用按钮 m_psh.dwFlags |= PSH_NOAPPLYNOW;
改变对话框颜色,映射OnCtlColor函数
switch (nCtlColor)
{
case CTLCOLOR_DLG:
pDC->SetBkMode(TRANSPARENT);
HBRUSH B = CreateSolidBrush(RGB(255, 0, 0)); //想要的颜色
return (HBRUSH) B;
}*/
阅读(613) | 评论(0) | 转发(0) |