windows-nt/Source/XPSP1/NT/shell/themes/test/ctlperf/aboutdlg.h

36 lines
954 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//------------------------------------------------------------------------
//
// File: shell\themes\test\ctlperf\aboutdlg.h
//
// Contents: Interface of the CAboutDlg class.
// Generated by the WTL app wizard.
//
// Classes: CAboutDlg
//
//------------------------------------------------------------------------
#pragma once
class CAboutDlg : public CDialogImpl<CAboutDlg>
{
public:
enum { IDD = IDD_ABOUTBOX };
BEGIN_MSG_MAP(CAboutDlg)
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
END_MSG_MAP()
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
CenterWindow(GetParent());
return TRUE;
}
LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
EndDialog(wID);
return 0;
}
};