void CGlutRecordDialog::OnSysCommand(UINT nID, LPARAM lParam)
{
	// TODO: Add your message handler code here and/or call default
	if (nID == SC_CLOSE)
	{
		// add code so message pops up
		extern_nID = nID;
		extern_lParam = lParam;
		CExitDialog Dlg;
		Dlg.DoModal();
	}
}
Beispiel #2
0
/**
* OnClose
*
* Description: 
*/
void CMainFrame::OnClose()
{
	if(m_exit)
	{
		CFrameWndEx::OnClose();
		HideTrayIcon();
	}
	CExitDialog exitDialog;
	int dlgRsp = exitDialog.DoModal();
	if(dlgRsp == IDCANCEL)
	{
		CFrameWndEx::OnClose();
		HideTrayIcon();
	}
	else 
	{
		ShowWindow(SW_HIDE);
	}
}