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.

61 lines
2.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: ispudlg.hxx
  8. //
  9. // Contents: Microsoft Internet Security Office Helper
  10. //
  11. // History: 14-Aug-1997 pberkman created
  12. //
  13. //--------------------------------------------------------------------------
  14. #ifndef ISPUDLG_HXX
  15. #define ISPUDLG_HXX
  16. class ISPUdlg_
  17. {
  18. public:
  19. ISPUdlg_(HWND hWndParent, HINSTANCE hInst, DWORD dwDialogId);
  20. virtual ~ISPUdlg_(void);
  21. HRESULT Invoke(void);
  22. void ShowError(HWND hWnd, DWORD dwStringId, DWORD dwTitleId);
  23. HWND MyWindow(void) { return(m_hWndMe); }
  24. HWND ParentWindow(void) { return(m_hWndParent); }
  25. void StartShowProcessing(DWORD dwDialogId, DWORD dwTextControlId, DWORD dwStringId);
  26. void ChangeShowProcessing(DWORD dwTextControlId, DWORD dwStirngId);
  27. void EndShowProcessing(void);
  28. virtual BOOL OnMessage(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  29. protected:
  30. HRESULT m_hrResult;
  31. virtual BOOL OnCommand(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { return(FALSE); }
  32. virtual BOOL OnInitDialog(HWND hWnd, WPARAM wParam, LPARAM lParam) { return(FALSE); }
  33. virtual BOOL OnOK(HWND hWnd);
  34. virtual BOOL OnCancel(HWND hWnd);
  35. virtual BOOL OnHelp(HWND hWnd, WPARAM wParam, LPARAM lParam) { return(FALSE); }
  36. virtual void Center(HWND hWnd2Center = NULL);
  37. void SetItemText(DWORD dwControlId, WCHAR *pwszText);
  38. BOOL GetItemText(DWORD dwControlId, WCHAR **ppwszText);
  39. private:
  40. HWND m_hWndMe;
  41. HWND m_hWndParent;
  42. HWND m_hDlgProcessing;
  43. HINSTANCE m_hInst;
  44. DWORD m_dwDialogId;
  45. };
  46. #endif // ISPUDLG_HXX