⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainfrm.h

📁 这是一本学习 window编程的很好的参考教材
💻 H
字号:
// MainFrm.h : interface of the CMainFrame class
//

#pragma once

#include "afxcoll.h"

#include "DLLManager.h"

#define PLUGIN_TBBUTTON_CLICK (WM_USER + 0)

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

// Attributes
protected:
	CSplitterWnd m_wndSplitter;

public:

// Operations
public:

// Overrides
public:
	virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
//	CReBar      m_wndReBar;
//	CDialogBar	m_wndDlgBar;

// Generated message map functions
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnPlugLoadPlugins();
	afx_msg void OnClose();

public:
	// Used to hold the number of DLLs loaded
	int m_nNumberOfDLLs;
	// Used to hold pointers to loaded DLLs
	DLLManager	*m_pLoadedDLLs;
	// Used to indicate whether Plug-Ins are loaded atleast once or not
	bool m_bIsPlugInLoaded;

public:
	// Used to load all available DLLs
//	int LoadDLLs(void);
	// Used to pump message into DLLs
	void OnCallPlugInManager(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
	// Used to return the toolbar object
	CToolBar * GetToolBarObject(void);
	// Used to hold the pathnames of the DLLs currently loaded
	CStringList m_szListDLLsCurrentlyLoaded;
};

⌨️ 快捷键说明

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