Steve Russell
2006-09-11 18:19:44 UTC
I am getting acquainted with handling some WM_SYSCOMMAND messages and would
appreciate it if someone would tell me how to handle the restore message
upon double-clicking the title bar. How does that differ from clicking the
Restore box?
void CMainFrame::OnSysCommand(UINT nID, LPARAM lParam)
{
if(nID == SC_RESTORE)
::Beep(500,100);
CFrameWnd::OnSysCommand(nID, lParam);
}
appreciate it if someone would tell me how to handle the restore message
upon double-clicking the title bar. How does that differ from clicking the
Restore box?
void CMainFrame::OnSysCommand(UINT nID, LPARAM lParam)
{
if(nID == SC_RESTORE)
::Beep(500,100);
CFrameWnd::OnSysCommand(nID, lParam);
}