Leaked source code of windows server 2003
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.

57 lines
1.4 KiB

  1. // DeleteMsgDlg.h : Declaration of the CDeleteMsgDlg
  2. #ifndef __DELETEMSGDLG_H_
  3. #define __DELETEMSGDLG_H_
  4. #include "resource.h" // main symbols
  5. #include <atlhost.h>
  6. #include "StaticBold.h"
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CDeleteMsgDlg
  9. class CDeleteMsgDlg :
  10. public CAxDialogImpl<CDeleteMsgDlg>
  11. {
  12. public:
  13. CDeleteMsgDlg()
  14. {
  15. }
  16. ~CDeleteMsgDlg()
  17. {
  18. }
  19. enum { IDD = IDD_DELETEMSGDLG };
  20. BEGIN_MSG_MAP(CDeleteMsgDlg)
  21. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  22. COMMAND_ID_HANDLER(IDOK, OnOK)
  23. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  24. END_MSG_MAP()
  25. // Handler prototypes:
  26. // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  27. // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  28. // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  29. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  30. {
  31. CenterWindow();
  32. HICON hIcon = LoadIcon(NULL,MAKEINTRESOURCE(IDI_WARNING));
  33. CStatic IconHolder = GetDlgItem(IDC_MSGICON);
  34. IconHolder.SetIcon(hIcon);
  35. return 1; // Let the system set the focus
  36. }
  37. LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
  38. {
  39. EndDialog(wID);
  40. return 0;
  41. }
  42. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
  43. {
  44. EndDialog(wID);
  45. return 0;
  46. }
  47. };
  48. #endif //__DELETEMSGDLG_H_