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.

69 lines
1.5 KiB

  1. #ifndef _EditServer_h_
  2. #define _EditServer_h_
  3. class CEditServer
  4. {
  5. private:
  6. static CEditServer *ms_pThis;
  7. private:
  8. HWND m_hwnd;
  9. LPTSTR m_szServerBuffer;
  10. HWND m_hwndParent;
  11. size_t m_cbLen;
  12. public:
  13. CEditServer( HWND hwndParent, LPTSTR szServer, size_t cbLen );
  14. ~CEditServer();
  15. int ShowDialog();
  16. inline LPTSTR GetServer() { return m_szServerBuffer; }
  17. private:
  18. static BOOL CALLBACK _Proc( HWND hwndDlg, // handle to dialog box
  19. UINT uMsg, // message
  20. WPARAM wParam, // first message parameter
  21. LPARAM lParam // second message parameter
  22. );
  23. };
  24. class CEditWebView
  25. {
  26. private:
  27. static CEditWebView *ms_pThis;
  28. private:
  29. LPTSTR m_szServerBuffer;
  30. LPTSTR m_szNameBuffer;
  31. LPTSTR m_szURLBuffer;
  32. HWND m_hwndParent;
  33. size_t m_cbLen;
  34. BOOL m_bEditServer : 2;
  35. public:
  36. CEditWebView( HWND hwndParent, LPCTSTR szServer, LPCTSTR szName, LPCTSTR szURL, size_t cbLen );
  37. ~CEditWebView();
  38. int ShowDialog();
  39. LPCTSTR GetServer() { return m_szServerBuffer; }
  40. LPCTSTR GetName() { return m_szNameBuffer; }
  41. LPCTSTR GetURL() { return m_szURLBuffer; }
  42. void SetEditServer(BOOL bEditServer) { m_bEditServer = (bEditServer != FALSE); }
  43. BOOL GetEditServer() { return(m_bEditServer); }
  44. private:
  45. static BOOL CALLBACK _Proc( HWND hwndDlg, // handle to dialog box
  46. UINT uMsg, // message
  47. WPARAM wParam, // first message parameter
  48. LPARAM lParam // second message parameter
  49. );
  50. };
  51. #endif