📄 svmainframe.h
字号:
//
// ----------------------------------------------------------- //
// C++ Source Code File Name: SVMainFrame.h
// C++ Compiler Used: Microsoft eVC++ 3.0
// Produced By: SofTech Systems Inc, New Baden, Il 62265
// File Creation Date: 2 July 2003
// Date Last Modified: 2 July 2003
// Copyright (c) 2003 SofTech Systems Inc.
// ----------------------------------------------------------- //
// ------------- Program Description and Details ------------- //
// ----------------------------------------------------------- //
/*
This file iss free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
*/
// ----------------------------------------------------------- //
#if !defined(AFX_SVMAINFRAME_H__9DBD13F3_B222_4E71_9ACD_9A606E68B9C1__INCLUDED_)
#define AFX_SVMAINFRAME_H__9DBD13F3_B222_4E71_9ACD_9A606E68B9C1__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// SVMainFrame.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSVMainFrame frame
#define AIT_CLOSE (WM_APP+1)
#define AIT_NOTIFY (WM_APP+2)
#define MAINFRAME_CLOSE (WM_APP+3)
// wParam parameter for PostMessage()
// to indicate whether to hide or destroy the topmost
// window when the Cancel button is clicked.
#define AIT_DESTROY_WINDOW 1
#define AIT_HIDE_WINDOW 2
typedef struct
{
CFormView* pView;
int iMenuID;
BOOL IsModifiedFlag;
CRuntimeClass* pClass;
} WINDOW_OBJECTS;
typedef struct
{
NMHDR hdr;
CRuntimeClass* pClass;
int iMenuID;
} AIT_DISPINFO;
class CSVMainFrame : public CFrameWnd
{
DECLARE_DYNCREATE(CSVMainFrame)
public:
CSVMainFrame(); // protected constructor used by dynamic creation
// OnSelectNextView will activate an existing instance of a view of type pClass, or
// create a new instance. Note: There can be only ONE instance of a specific
// view class. bHideFlag can be either AIT_HIDE_WINDOW or AIT_DESTROY_WINDOW. If you
// use AIT_HIDE_WINDOW then this view can be reactivated by calling OnSelectPrevView().
void OnSelectNextView(CRuntimeClass* pClass, int bHideflag = AIT_HIDE_WINDOW, int iMenuID = -1);
// OnSelectPrevView() re-activates the most recently hidden view (by calling
// OnSelectNextView(). If there are no other views then the current view will not
// change. bHideFlag can be either AIT_HIDE_WINDOW or AIT_DESTROY_WINDOW. If you
// use AIT_HIDE_WINDOW then this view can be reactivated by OnSelectNextView().
void OnSelectPrevView(int bHideFlag);
// Operations
protected: // control bar embedded members
WINDOW_OBJECTS * m_pObj;
WINDOW_OBJECTS *GetActiveWindow();
void ResetMenuBar(int iMenuID = -1);
void ShutdownWindow();
void DestroyViewList();
WINDOW_OBJECTS * FindWindow(CRuntimeClass* pClass);
WINDOW_OBJECTS * GetNextWindow(WINDOW_OBJECTS *pCurWindow);
void RemoveWindow(WINDOW_OBJECTS* pObj);
protected:
// You must delete the object that is declared in the CMainFrame class
CCeCommandBar m_wndCommandBar;
protected:
CPtrList m_Views;
UINT m_uiMenuID;
int m_iID;
AIT_DISPINFO m_info;
POSITION m_pos;
CRuntimeClass* m_pRootWindow;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSVMainFrame)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CSVMainFrame();
// Generated message map functions
//{{AFX_MSG(CSVMainFrame)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SVMAINFRAME_H__9DBD13F3_B222_4E71_9ACD_9A606E68B9C1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -