Пример #1
0
LRESULT CShellViewImpl::OnAbout ( WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled )
{
CSimpleDialog<IDD_ABOUTDLG> dlg;

    dlg.DoModal();
    return 0;
}
INT_PTR CALLBACK CSimpleDialog::DlgProc (
  HWND     hDlg,           //[in] Handle to dialog box
  UINT     uMsg,           //[in] Message
  WPARAM   wParam,         //[in] First message parameter
  LPARAM   lParam          //[in] Second message parameter
  )
{
    BOOL bReturn = FALSE;
    if (WM_INITDIALOG == uMsg)
    {
        SetWindowLongPtr(hDlg, GWLP_USERDATA, lParam);  
    }

    CSimpleDialog* pThis = reinterpret_cast<CSimpleDialog *>(GetWindowLongPtr(hDlg, GWLP_USERDATA));
    if (pThis != NULL)
    {
        bReturn = pThis->ProcessMessage(hDlg, uMsg, wParam, lParam);  
    }

    return bReturn;
}
Пример #3
0
LRESULT CMainDlg::OnAppAbout(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
	CSimpleDialog<IDD_ABOUTBOX, FALSE> dlg;
	dlg.DoModal();
	return 0;
}
Пример #4
0
LRESULT [!output WTL_MAINDLG_CLASS]::OnAppAbout(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
	CSimpleDialog<IDD_ABOUTBOX, FALSE> dlg;
	dlg.DoModal();
	return 0;
}
Пример #5
0
void CMainFrame::OnAppAbout( UINT /*uNotifyCode*/, int /*nID*/, CWindow /*wndCtl*/ )
{
	CSimpleDialog<IDD_ABOUTBOX, true> dlg;
	dlg.DoModal();
}
Пример #6
0
LRESULT CRunDlg::OnAbout(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
    CSimpleDialog<IDD_ABOUT> ab;
    ab.DoModal(m_hWnd);
    return 0;
}