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.

81 lines
2.0 KiB

  1. /****
  2. AdvUi.h
  3. CoryWest@Microsoft.Com
  4. The UI code for the Advanced dialog box and its associated dialogs.
  5. Copyright September 1997, Microsoft Corporation
  6. ****/
  7. #ifndef __ADVUI_H_INCLUDED__
  8. #define __ADVUI_H_INCLUDED__
  9. ///////////////////////////////////////////////////////////////////////
  10. // CChangeDCDialog
  11. class CChangeDCDialog : public CDialog
  12. {
  13. public:
  14. CChangeDCDialog(MyBasePathsInfo* pInfo, HWND hWndParent);
  15. LPCWSTR GetNewDCName() { return m_szNewDCName;}
  16. private:
  17. virtual BOOL OnInitDialog();
  18. virtual void OnOK();
  19. afx_msg void OnChangeRadio();
  20. BOOL OnHelp(WPARAM wParam, LPARAM lParam) { return ShowHelp( GetSafeHwnd(), wParam, lParam, help_map, FALSE ); };
  21. BOOL OnContextHelp(WPARAM wParam, LPARAM lParam) { return ShowHelp( GetSafeHwnd(), wParam, lParam, help_map, TRUE ); };
  22. static const DWORD help_map[];
  23. CString m_szNewDCName;
  24. MyBasePathsInfo* m_pInfo;
  25. DECLARE_MESSAGE_MAP()
  26. };
  27. ///////////////////////////////////////////////////////////////////////
  28. // CEditFsmoDialog
  29. class CEditFsmoDialog : public CDialog
  30. {
  31. public:
  32. CEditFsmoDialog(MyBasePathsInfo* pInfo, HWND hWndParent, IDisplayHelp* pIDisplayHelp, BOOL fAllowFSMOChange );
  33. private:
  34. virtual BOOL OnInitDialog();
  35. virtual void OnClose();
  36. afx_msg void OnChange();
  37. void _SetFsmoServerStatus(BOOL bOnLine);
  38. MyBasePathsInfo* m_pInfo; // info about the current focus
  39. CComPtr<IDisplayHelp> m_spIDisplayHelp;
  40. CString m_szFsmoOwnerServerName;
  41. CToggleTextControlHelper m_fsmoServerState;
  42. BOOL m_fFSMOChangeAllowed;
  43. static const DWORD help_map[];
  44. BOOL OnHelp(WPARAM wParam, LPARAM lParam) { return ShowHelp( GetSafeHwnd(), wParam, lParam, help_map, FALSE ); };
  45. BOOL OnContextHelp(WPARAM wParam, LPARAM lParam) { return ShowHelp( GetSafeHwnd(), wParam, lParam, help_map, TRUE ); };
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. #endif // __ADVUI_H_INCLUDED__