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

#ifndef _EditServer_h_
#define _EditServer_h_
class CEditServer
{
private:
static CEditServer *ms_pThis;
private:
HWND m_hwnd;
LPTSTR m_szServerBuffer;
HWND m_hwndParent;
size_t m_cbLen;
public:
CEditServer( HWND hwndParent, LPTSTR szServer, size_t cbLen );
~CEditServer();
int ShowDialog();
inline LPTSTR GetServer() { return m_szServerBuffer; }
private:
static BOOL CALLBACK _Proc( HWND hwndDlg, // handle to dialog box
UINT uMsg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
};
class CEditWebView
{
private:
static CEditWebView *ms_pThis;
private:
LPTSTR m_szServerBuffer;
LPTSTR m_szNameBuffer;
LPTSTR m_szURLBuffer;
HWND m_hwndParent;
size_t m_cbLen;
BOOL m_bEditServer : 2;
public:
CEditWebView( HWND hwndParent, LPCTSTR szServer, LPCTSTR szName, LPCTSTR szURL, size_t cbLen );
~CEditWebView();
int ShowDialog();
LPCTSTR GetServer() { return m_szServerBuffer; }
LPCTSTR GetName() { return m_szNameBuffer; }
LPCTSTR GetURL() { return m_szURLBuffer; }
void SetEditServer(BOOL bEditServer) { m_bEditServer = (bEditServer != FALSE); }
BOOL GetEditServer() { return(m_bEditServer); }
private:
static BOOL CALLBACK _Proc( HWND hwndDlg, // handle to dialog box
UINT uMsg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
};
#endif