text: // This is a part of the Microsoft Foundation Classes C++ library.
  // Copyright (C) Microsoft Corporation
  // All rights reserved.
  //
  // This source code is only intended as a supplement to the
  // Microsoft Foundation Classes Reference and related
  // electronic documentation provided with the library.
  // See these sources for detailed information regarding the
  // Microsoft Foundation Classes product.
  
  // MainFrm.h : interface of the CMainFrame class
  //
  
  #pragma once
  #include "OptionsPane.h"
  
  class CMainFrame : public CFrameWndEx
  {
  	
  protected: // create from serialization only
  	CMainFrame();
  	DECLARE_DYNCREATE(CMainFrame)
  
  // Attributes
  public:
  
  // Operations
  public:
  	void OnResetGestureConfig(CWnd* pWnd)
  	{
  		m_wndOptions.OnResetGestureConfig(pWnd);
  	}
  
  // Overrides
  public:
  	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  	virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);
  
  // Implementation
  public:
  	virtual ~CMainFrame();
  #ifdef _DEBUG
  	virtual void AssertValid() const;
  	virtual void Dump(CDumpContext& dc) const;
  #endif
  
  protected:  // control bar embedded members
  	CMFCMenuBar       m_wndMenuBar;
  	CMFCToolBar       m_wndToolBar;
  	CMFCStatusBar     m_wndStatusBar;
  	CMFCToolBarImages m_UserImages;
  	COptionsPane      m_wndOptions;
  
  // Generated message map functions
  protected:
  	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  	afx_msg void OnViewCustomize();
  	afx_msg LRESULT OnToolbarCreateNew(WPARAM wp, LPARAM lp);
  	afx_msg void OnApplicationLook(UINT id);
  	afx_msg void OnUpdateApplicationLook(CCmdUI* pCmdUI);
  	DECLARE_MESSAGE_MAP()
  
  	BOOL CreateDockingWindows();
  	void SetDockingWindowIcons(BOOL bHiColorIcons);
  };
  
  
  