mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
824 B
47 lines
824 B
/*++
|
|
|
|
Copyright (c) 2000 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
Modal Dialog
|
|
|
|
Abstract:
|
|
|
|
This contains the abstract class CModalDialog and the trivial sub class
|
|
CModalOkDialog which does a simple ok dialog.
|
|
|
|
Author:
|
|
|
|
Marc Reyhner 8/28/2000
|
|
|
|
--*/
|
|
|
|
#ifndef __MODALDIALOG_H__
|
|
#define __MODALDIALOG_H__
|
|
|
|
|
|
|
|
class CModalDialog
|
|
{
|
|
public:
|
|
INT_PTR DoModal(LPCTSTR lpTemplate, HWND hWndParent);
|
|
|
|
protected:
|
|
virtual INT_PTR CALLBACK DialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)=0;
|
|
virtual INT_PTR OnCreate(HWND hWnd);
|
|
|
|
private:
|
|
|
|
static INT_PTR CALLBACK _DialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
|
|
|
|
};
|
|
|
|
class CModalOkDialog : public CModalDialog {
|
|
|
|
protected:
|
|
|
|
virtual INT_PTR CALLBACK DialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
|
|
};
|
|
|
|
#endif
|