📄 ctpstatusdlg.h
字号:
// CCTPStatusDlg - class, which implements dialog for keeping eye on CTP
// status
// Declaration file
//
// (c) Lev Naumov, CAMEL Laboratory
// E-mail: camellab@mail.ru
// For more information see http://camel.ifmo.ru or
// http://www.codeproject.com/internet/ctp.asp
/////////////////////////////////////////////////////////////////////////////
class CCTPStatusDlg : public CDialog
{
public:
// Constructor. Parameter ctp gives a reverence to CTP fuctionality class,
// to keep an eye on it. It will be refreshed each cycle milliseconds
CCTPStatusDlg(CCTPNet& ctp, UINT cycle, CWnd* pParent = NULL);
// Dialog Data
//{{AFX_DATA(CCTPStatusDlg)
enum { IDD = IDD_CTPSTATUS };
//}}AFX_DATA
// Overrides
//{{AFX_VIRTUAL(CCTPStatusDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX);
//}}AFX_VIRTUAL
// Implementation
protected:
// Set suspend status
void SetSuspendStatus();
// Reference to CTP
CCTPNet& m_CTP;
// Refreshment timer
UINT m_uTimer;
// Refreshment cycle
UINT m_uCycle;
// Generated message map functions
//{{AFX_MSG(CCTPStatusDlg)
afx_msg void OnTimer(UINT nIDEvent);
virtual BOOL OnInitDialog();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnBsuspend();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -