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.

75 lines
2.7 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : WzConnectToServer.h //
  3. // //
  4. // DESCRIPTION : Header file for the CWzConnectToServer class. //
  5. // //
  6. // AUTHOR : yossg //
  7. // //
  8. // HISTORY : //
  9. // Jun 26 2000 yossg Create //
  10. // //
  11. // Copyright (C) 2000 Microsoft Corporation All Rights Reserved //
  12. /////////////////////////////////////////////////////////////////////////////
  13. #ifndef WZ_CONNECT2SERVER_H_INCLUDED
  14. #define WZ_CONNECT2SERVER_H_INCLUDED
  15. #include "proppageex.h"
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CWzConnectToServer
  18. class CFaxServerNode;
  19. class CWzConnectToServer : public CSnapInPropertyPageImpl<CWzConnectToServer>
  20. {
  21. public:
  22. //
  23. // Constructor
  24. //
  25. CWzConnectToServer(CSnapInItem *pNode);
  26. ~CWzConnectToServer();
  27. enum { IDD = IDD_CONNECT_TO_WIZARD };
  28. BEGIN_MSG_MAP(CWzConnectToServer)
  29. MESSAGE_HANDLER( WM_INITDIALOG, OnInitDialog)
  30. COMMAND_HANDLER(IDC_CONNECT_COMPUTER_NAME_EDIT, EN_CHANGE, OnTextChanged)
  31. COMMAND_HANDLER(IDC_CONNECT_LOCAL_RADIO1 , BN_CLICKED, OnComputerRadioButtonClicked)
  32. COMMAND_HANDLER(IDC_CONNECT_ANOTHER_RADIO2, BN_CLICKED, OnComputerRadioButtonClicked)
  33. COMMAND_HANDLER(IDC_CONNECT_BROWSE4SERVER_BUTTON, BN_CLICKED, OnBrowseForMachine)
  34. CHAIN_MSG_MAP(CSnapInPropertyPageImpl<CWzConnectToServer>)
  35. END_MSG_MAP()
  36. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  37. BOOL OnWizardFinish(); //when the wizard finishes
  38. BOOL OnSetActive();
  39. LRESULT OnTextChanged (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  40. LRESULT OnComputerRadioButtonClicked (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  41. LRESULT OnBrowseForMachine(UINT uMsg, WPARAM wParam, HWND hwnd, BOOL& bHandled);
  42. private:
  43. //
  44. // Methods
  45. //
  46. VOID EnableSpecifiedServerControls(BOOL fState);
  47. //
  48. // Controls
  49. //
  50. CEdit m_ServerNameEdit;
  51. //
  52. // Pointer to the node
  53. //
  54. CFaxServerNode * m_pRoot;
  55. };
  56. #endif // WZ_CONNECT2SERVER_H_INCLUDED