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.

55 lines
909 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. StaticOkDialog
  5. Abstract:
  6. This is an abstraction around a simple non-modal dialog
  7. box to make them easier to use.
  8. Author:
  9. Marc Reyhner 7/11/2000
  10. --*/
  11. #ifndef __STATICOKDIALOG_H__
  12. #define __STATICOKDIALOG_H__
  13. // Forward declaration for the DlgListT struct.
  14. class CStaticOkDialog;
  15. ////////////////////////////////////////////////
  16. //
  17. // CStaticOkDialog
  18. //
  19. // Class for making static dialog boxes simpler.
  20. //
  21. class CStaticOkDialog
  22. {
  23. public:
  24. CStaticOkDialog();
  25. virtual ~CStaticOkDialog();
  26. VOID Activate();
  27. BOOL DialogMessage(LPMSG msg);
  28. VOID DestroyDialog();
  29. BOOL IsCreated();
  30. BOOL Create(HINSTANCE hInstance, WORD resId, HWND parentWnd);
  31. private:
  32. HWND m_hWnd;
  33. virtual VOID OnOk();
  34. static INT_PTR CALLBACK _DlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
  35. LPARAM lParam);
  36. };
  37. #endif