这是一本学习 window编程的很好的参考教材

源代码在线查看: mainfrm.h

软件大小: 5535 K
上传用户: ok34090512
关键词: window 编程 教材
下载地址: 免注册下载 普通下载 VIP

相关代码

				// 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;
				};
							

相关资源