mainfrm.h
来自「RFID读卡器源码,vc.net编写,bcgp界面控件」· C头文件 代码 · 共 156 行
H
156 行
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__EE0C81ED_53C5_49C1_AEA9_08ED849A24D0__INCLUDED_)
#define AFX_MAINFRM_H__EE0C81ED_53C5_49C1_AEA9_08ED849A24D0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define CFrameWnd CBCGPFrameWnd
#include "FolderListBar.h"
#include "CalendarBar.h"
#include "taskPane.h"
class CWorkspaceObj;
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
void SetWorkSpace (CWorkspaceObj* pWorkSpace);
void OnCloseFoldersPopup (BOOL bKeep);
virtual void AdjustDockingLayout (HDWP hdwp = NULL);
void OnChangeLook (BOOL bOutlookBar2003);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void RecalcLayout(BOOL bNotify = TRUE);
virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
BOOL CreateTaskPane ();
#endif
protected: // control bar embedded members
CBCGPMenuBar m_wndMenuBar;
CBCGPStatusBar m_wndStatusBar;
CImageList m_imlStatusAnimation;
CBCGPToolBar m_wndDatabase;
CBCGPOutlookBar m_wndBarOutlook;
CBCGPOutlookBar m_wndBarOutlook2003;
// Outlook bar panes:
CBCGPOutlookBarPane m_wndOutlookPane1;
CBCGPOutlookBarPane m_wndOutlookPane2;
CBCGPShellTree m_wndTree;
CCalendarBar m_wndCalendar;
// Outlook bar-2003 panes:
CBCGPOutlookBarPane m_wndOutlookPane12003;
CBCGPOutlookBarPane m_wndOutlookPane22003;
CBCGPShellTree m_wndTree2003;
CCalendarBar m_wndCalendar2003;
CTaskPane m_wndTaskPane;
UINT m_uiHilightedPage;
CBCGPCaptionBar m_wndCaption;
CFolderListBar m_wndFolderList;
CBCGPSplitterWnd m_wndSplitter;
CImageList m_ImagesSmall;
CObList m_lstWorkspaces; // List of CWorkspaceObj
CWorkspaceObj* m_pCurrWorkSpace;
BOOL m_bOutlookBar2003;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnViewOutlookbar();
afx_msg void OnUpdateViewOutlookbar(CCmdUI* pCmdUI);
afx_msg void OnViewCaptionbar();
afx_msg void OnUpdateViewCaptionbar(CCmdUI* pCmdUI);
afx_msg void OnViewFolderList();
afx_msg void OnUpdateViewFolderList(CCmdUI* pCmdUI);
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
afx_msg void OnClose();
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
//}}AFX_MSG
afx_msg void OnViewCustomize();
afx_msg LRESULT OnToolbarReset(WPARAM,LPARAM);
afx_msg LRESULT OnToolbarCreateNew(WPARAM,LPARAM);
afx_msg void OnUpdateIndicatorSendReceive (CCmdUI* pCmdUI);
afx_msg void OnViewWorkSpace (UINT ud);
afx_msg void OnViewFoldersPopup();
DECLARE_MESSAGE_MAP()
BOOL CreateOutlookBar (CBCGPOutlookBar& bar, UINT uiID,
CBCGPOutlookBarPane& pane1, CBCGPOutlookBarPane& pane2,
CBCGPShellTree& tree, CCalendarBar& calendar,
int nInitialWidth);
BOOL CreateCaptionBar ();
void SetBasicCommands ();
afx_msg LRESULT OnMapedRFID(WPARAM wParam, LPARAM lParam);
void AddWorkSpace (const CString& strName, const int iIconIndex, const UINT uiCmd,
CBCGPOutlookBarPane& pane, const UINT uiNewCmdID,
CImageList& images);
// int FindFocusedOutlookWnd (CBCGPOutlookWnd** ppOutlookWnd);
CBCGPOutlookWnd* FindOutlookParent (CWnd* pWnd);
CBCGPOutlookWnd* m_pCurrOutlookWnd;
CBCGPOutlookBarPane* m_pCurrOutlookPage;
public:
// afx_msg void OnRfidAssociate();
// afx_msg void OnRfidDeassociate();
// afx_msg void OnUpdateRfidAssociate(CCmdUI *pCmdUI);
// afx_msg void OnUpdateRfidDeassociate(CCmdUI *pCmdUI);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__EE0C81ED_53C5_49C1_AEA9_08ED849A24D0__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?