Source code of Windows XP (NT5)
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

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. Modal Dialog
  5. Abstract:
  6. This contains the abstract class CModalDialog and the trivial sub class
  7. CModalOkDialog which does a simple ok dialog.
  8. Author:
  9. Marc Reyhner 8/28/2000
  10. --*/
  11. #ifndef __MODALDIALOG_H__
  12. #define __MODALDIALOG_H__
  13. class CModalDialog
  14. {
  15. public:
  16. INT_PTR DoModal(LPCTSTR lpTemplate, HWND hWndParent);
  17. protected:
  18. virtual INT_PTR CALLBACK DialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)=0;
  19. virtual INT_PTR OnCreate(HWND hWnd);
  20. private:
  21. static INT_PTR CALLBACK _DialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
  22. };
  23. class CModalOkDialog : public CModalDialog {
  24. protected:
  25. virtual INT_PTR CALLBACK DialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
  26. };
  27. #endif