- Disable esc key exit for MFC Dialog
virtual PreTranslateMessage
{
if (pMsg->message == WM_KEYDOWN)
{
if (pMsg->wParam == VK_RETURN || pMsg->wParam == VK_ESCAPE)
{
return TRUE;
}
}
}
- Position Child Control in Dialog
CRect rect;
GetDlgItem(your dialog control id)->GetWindowRect(&rect);
ScreenToClient(&rect); //
댓글 없음:
댓글 쓰기