📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__C1FB5528_B6EF_11D4_B62B_444553540000__INCLUDED_)
#define AFX_MAINFRM_H__C1FB5528_B6EF_11D4_B62B_444553540000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ChildFrm.h"
/////////////////////////////////////////////////////////////////////////////
// CMDIClientWnd window
class CMDIClientWnd : public CWnd
{
// Construction
public:
CMDIClientWnd();
// Attributes
public:
CBitmap m_bitmap;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMDIClientWnd)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMDIClientWnd();
// Generated message map functions
protected:
//{{AFX_MSG(CMDIClientWnd)
afx_msg void OnPaint();
afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CMDIClientWnd window
class CMainFrame : public CMDIFrameWnd
{
DECLARE_DYNAMIC(CMainFrame)
public:
CMainFrame();
// Attributes
public:
CMDIClientWnd m_wndMDIClient;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
void InitialShowWindow(UINT nCmdShow);
CString m_strConnections;
CDocument * ConnectEx(LPCTSTR lpszConnectString = NULL,LPCTSTR lpszFileName = NULL, LPCTSTR lpszInitialCatalog = NULL);
std::list<CChildFrame*> m_listChildFrame;
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
public: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
// Generated message map functions
public:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnFileConnect();
afx_msg void OnFileDisconnect();
afx_msg void OnFileDisconnectAll();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL m_bCloseAfterCancel;
BOOL m_bDisconnectAllAfterCancel;
CWnd* m_pWndCurrentChild;
CMDIChildWnd* GetNextMDIChildWnd();
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__C1FB5528_B6EF_11D4_B62B_444553540000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -