mainfrm.h

来自「用数据库控制树型控件现实内容的例子」· C头文件 代码 · 共 84 行

H
84
字号
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__011E18C6_559B_4524_8062_0D25D1515E6A__INCLUDED_)
#define AFX_MAINFRM_H__011E18C6_559B_4524_8062_0D25D1515E6A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ClientTreeView.h"
#include "ClientInfoview.h"
#include "ClientTreeDlgView.h"
#include "Socket_UdpServer.h"	// Added by ClassView
#include "ConfigWebServerDlg.h"

class CMainFrame : public CFrameWnd
{
	
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:
	CConfigWebServerDlg  m_WebServerDlg;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	//}}AFX_VIRTUAL

// Implementation
public:
//	_ConnectionPtr m_db;
	CString m_InstallUrl;
	CString m_UnInstallUrl;
	CSocket_UdpServer m_SocketServer;

	bool  serverstarted;
	int m_ClientPort;
	int m_ServerPort;
//	int m_InterTime;
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
	CClientTreeDlgView *m_ClientTreeview;
	CClientInfoview *m_ClientInfoview;

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
	CSplitterWnd m_Splitter;
	CString  m_IniFile;
	CString strSection       ;
    CString strSectionKey    ;

// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnMainmenuServerconfig();
	afx_msg void OnMenuTest();
	afx_msg void OnMainmenuConfigWeb();
	afx_msg void OnMainmenuConfigOther();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__011E18C6_559B_4524_8062_0D25D1515E6A__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?