15,979
社区成员
发帖
与我相关
我的任务
分享
virtual BOOL PreTranslateMessage(MSG* pMsg)
{
// 恢复应用按钮处于可用状态
if (pMsg->message == WM_LBUTTONDOWN)
{
HWND pageWnd = WindowFromPoint(pMsg->pt);
int ctrlID = ::GetDlgCtrlID(pageWnd);
if ((::GetParent(pageWnd) != m_hWnd) && ctrlID)
{
SendMessage(m_hWnd, WM_COOLING_APPLY_TRUE, 0, 0);
}
}
return CWindow::IsDialogMessage(pMsg);
}