#ifndef __PageConnect_h__
#define __PageConnect_h__
#if _MSC_VER > 1000
#pragma once
#endif #include "AutoSizer.h"
class CAllSrvUISheet;
class CPageConnect : public CPropertyPage
{
public:
DECLARE_DYNAMIC(CPageConnect)
DECLARE_MESSAGE_MAP()
public:
CPageConnect();
public:
public:
void OnEvent(IAGCEvent* pEvent);
public:
protected:
virtual void DoDataExchange(CDataExchange* pDX); virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
protected:
CAllSrvUISheet* GetSheet()
{
return reinterpret_cast<CAllSrvUISheet*>(GetParent());
}
static UINT CreateSessionThreadThunk(void* pvParam);
void CreateSessionThreadProc();
protected:
virtual BOOL OnInitDialog();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg LRESULT OnSessionSucceeded(WPARAM, LPARAM);
afx_msg LRESULT OnSessionFailed(WPARAM, LPARAM);
protected:
enum { IDD = IDD_PAGE_CONNECT };
CProgressCtrl m_progress;
protected:
enum {wm_SessionSucceeded = WM_APP, wm_SessionFailed,};
CWinThread* m_pthCreateSession;
CEvent m_evtCreateSession;
CAutoSizer m_AutoSizer;
public:
afx_msg void OnNMCustomdrawProgressConnecting(NMHDR *pNMHDR, LRESULT *pResult);
};
#endif