📄 nthell.wmh
字号:
//Filename: NTHELL.WMH
//"NTHELL" Generated by WindowsMAKER Professional
//Author: Martin Heller
//
// ***********************************************************************
// Do not add code here. Add code in the .HPP file.
//
// This file is maintained by WindowsMAKER Professional.
// As you make changes in your application using WindowsMAKER Professional,
// this file is automatically updated, therefore you never modify this file.
// This file contains the base classes for the application and the main
// window class. It also contains the WindowsMAKER common classes -
// which is the basis for common WindowsMAKER functionality (eg. menu handling)
// For more information, see the section "How code is generated"
// in the documentation.
// ***********************************************************************
//
// Classes:
// CWinMakerApp
// CWinMakerFrameWnd
// CWinMakerModelessDlg
// CWinMakerModalDlg
// CWinMakerClientDlg
// Cwm_MainBaseWnd
//
//
// ----------------
// | MFC CLASS |
// | |
// ----------------
// |
// ----------------
// | WindowsMAKER | <--- You are here
// | Common Class |
// ----------------
// |
// ----------------
// | WindowsMAKER |
// | Base Class |
// ----------------
// |
// ----------------
// | USER CLASS |
// | |
// ----------------
#ifndef __WMP_INCLUDED__
#define __WMP_INCLUDED__
// *********************************************************************
// CLASS: CWinMakerApp
// *********************************************************************
// This is a WindowsMAKER class that encapsulates all the functionality
// for a WindowsMAKER application. The user's application class must
// inherit from this class. This class handles initialization and
// termination of the application, the creation of windows and
// registration of windows classes.
class CWinMakerApp : public CWinApp
{
public:
CWinMakerApp (const char* pName = NULL);
virtual ~CWinMakerApp() {} ;
virtual BOOL InitInstance ();
virtual BOOL InitApplication ();
virtual CString RegisterCustClass ();
virtual BOOL ExitInstance ();
HBRUSH hbrBack;
CWinMakerClientDlg* pWndClient;
Cwm_MainWnd* pWndMain;
private:
CString strWndClass;
protected:
virtual BOOL PreTranslateMessage(MSG* pMsg);
} ;
// Prototypes for User Class
#define WMPROTO_Application()
// *********************************************************************
// CLASS: CWinMakerFrameWnd
// *********************************************************************
// This is a WindowsMAKER class that encapsulates all the functionality of
// the applications frame windows. The initialization of the windows
// are done by this class, and all the menu commands for the windows
// come through this class. User windows should inherit from this class
// to gain default WindowsMAKER functionality.
class CWinMakerFrameWnd : public CFrameWnd
{
public:
CWinMakerFrameWnd () : CFrameWnd() {} ;
virtual ~CWinMakerFrameWnd() {} ;
virtual BOOL LoadAccelTable (const char *szTable){return TRUE;};
friend BLDSwitchMenu (CWnd* pWnd, char *pTemplateName);
// a buffer function so that a window can be created by any
// function, public or private.
virtual BOOL doCreate (const char *strClass, const char *szCap,
DWORD dwStyle, const CRect& rc, CWnd *pParent, const char FAR *szMenu)
{ return Create (strClass, szCap, dwStyle, rc, pParent, szMenu); } ;
protected:
// Menu command functions in menu: MAINMENUBAR
afx_msg void wmIDM_SaveCM () {BLD_SaveUDCFunc (this);} ;
afx_msg void wmIDM_SaveasCM () {BLD_SaveasUDCFunc (this);} ;
afx_msg void wmIDM_PrintCM () {BLD_PrintUDCFunc (this);} ;
afx_msg void wmIDM_ExitCM () {BLD_ExitUDCFunc (this);} ;
afx_msg void wmIDM_AllCM () {BLD_RunBenchMarksUDCFunc (this);} ;
afx_msg void wmIDM_DhrystoneCM () {BLD_RunDhrystoneUDCFunc (this);} ;
afx_msg void wmIDM_WhetstoneCM () {BLD_RunWhetstoneUDCFunc (this);} ;
afx_msg void wmIDM_DiskCM () {BLD_RunDiskUDCFunc (this);} ;
afx_msg void wmIDM_VideoalltestsCM () {BLD_RunVideoUDCFunc (this);} ;
afx_msg void wmIDM_TextScrollingCM () {BLD_TextScrollingUDCFunc (this);} ;
afx_msg void wmIDM_LineDrawingCM () {BLD_LineDrawingUDCFunc (this);} ;
afx_msg void wmIDM_FilledObjectsCM () {BLD_FilledObjectsUDCFunc (this);} ;
afx_msg void wmIDM_ColorDisplayCM () {BLD_ColorDisplayUDCFunc (this);} ;
afx_msg void wmIDM_DetailsCM () {BLD_ShowDetailsDlgFunc (this);} ;
afx_msg void wmIDM_AboutCM () {BLD_AboutDlgFunc (this);} ;
DECLARE_MESSAGE_MAP()
} ;
// *********************************************************************
// CLASS: Cwm_MainBaseWnd
// *********************************************************************
// This is a WindowsMAKER class that encapsulates all the functionality
// for the applications main window. The initialization of the window
// are done by this class, and all the messages for the window
// come through this class. User windows should inherit from this class
// to gain default WindowsMAKER functionality.
class Cwm_MainBaseWnd : public CWinMakerFrameWnd
{
public:
Cwm_MainBaseWnd () : CWinMakerFrameWnd() {};
virtual ~Cwm_MainBaseWnd() {} ;
virtual BOOL InitWindow (const char *strClass);
virtual BOOL InitMainMenu ();
virtual BOOL LoadAccelTable (const char *szTable);
protected:
virtual int BLD_WM_CREATEMsg(LPCREATESTRUCT lpCreateStruct){return 0;};
// Prototypes for Message Handling Functions
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSetFocus (CWnd* pOldWnd);
friend class CWinMakerApp; // for PreTranslate access
DECLARE_MESSAGE_MAP()
} ;
// Prototypes for User Class
#define WMPROTO_MainWnd() \
virtual int BLD_WM_CREATEMsg(LPCREATESTRUCT lpCreateStruct);\
// *********************************************************************
// CLASS: CWinMakerModalDlg
// *********************************************************************
// This is a WindowsMAKER modal dialog class that encapsulates all the
// base functionality that WindowsMAKER provides for modal dialogs. Every
// modal dialog box in the system inherits from this class, and redefines
// attributes for that specific dialog box.
class CWinMakerModalDlg : public CModalDialog
{
public:
CWinMakerModalDlg(const char FAR* AName, CWnd* pParentWnd = NULL)
: CModalDialog (AName, pParentWnd) {} ;
virtual ~CWinMakerModalDlg() {} ;
friend BLDSwitchMenu (CWnd* pWnd, char *pTemplateName);
protected:
// Menu command functions in menu: MAINMENUBAR
afx_msg void wmIDM_SaveCM () {BLD_SaveUDCFunc (this);} ;
afx_msg void wmIDM_SaveasCM () {BLD_SaveasUDCFunc (this);} ;
afx_msg void wmIDM_PrintCM () {BLD_PrintUDCFunc (this);} ;
afx_msg void wmIDM_ExitCM () {BLD_ExitUDCFunc (this);} ;
afx_msg void wmIDM_AllCM () {BLD_RunBenchMarksUDCFunc (this);} ;
afx_msg void wmIDM_DhrystoneCM () {BLD_RunDhrystoneUDCFunc (this);} ;
afx_msg void wmIDM_WhetstoneCM () {BLD_RunWhetstoneUDCFunc (this);} ;
afx_msg void wmIDM_DiskCM () {BLD_RunDiskUDCFunc (this);} ;
afx_msg void wmIDM_VideoalltestsCM () {BLD_RunVideoUDCFunc (this);} ;
afx_msg void wmIDM_TextScrollingCM () {BLD_TextScrollingUDCFunc (this);} ;
afx_msg void wmIDM_LineDrawingCM () {BLD_LineDrawingUDCFunc (this);} ;
afx_msg void wmIDM_FilledObjectsCM () {BLD_FilledObjectsUDCFunc (this);} ;
afx_msg void wmIDM_ColorDisplayCM () {BLD_ColorDisplayUDCFunc (this);} ;
afx_msg void wmIDM_DetailsCM () {BLD_ShowDetailsDlgFunc (this);} ;
afx_msg void wmIDM_AboutCM () {BLD_AboutDlgFunc (this);} ;
DECLARE_MESSAGE_MAP()
} ;
// *********************************************************************
// CLASS: CWinMakerModelessDlg
// *********************************************************************
// This is a WindowsMAKER modeless dialog class that encapsulates all the
// base functionality that WindowsMAKER provides for modeless dialogs. Every
// modeless dialog box in the system inherits from this class, and redefines
// attributes for that specific dialog box.
class CWinMakerModelessDlg : public CDialog
{
public:
CWinMakerModelessDlg () : CDialog () {} ;
virtual ~CWinMakerModelessDlg() {} ;
friend BLDSwitchMenu (CWnd* pWnd, char *pTemplateName);
virtual BOOL doCreateIndirect (const BYTE FAR *pDlgTmp, CWnd *pParent = NULL)
{ return CreateIndirect (pDlgTmp, pParent); } ;
protected:
// for custom cleanup after WM_NCDESTROY
virtual void PostNcDestroy();
// Overridables (special message map entries)
virtual void OnOK();
virtual void OnCancel();
// Menu command functions in menu: MAINMENUBAR
afx_msg void wmIDM_SaveCM () {BLD_SaveUDCFunc (this);} ;
afx_msg void wmIDM_SaveasCM () {BLD_SaveasUDCFunc (this);} ;
afx_msg void wmIDM_PrintCM () {BLD_PrintUDCFunc (this);} ;
afx_msg void wmIDM_ExitCM () {BLD_ExitUDCFunc (this);} ;
afx_msg void wmIDM_AllCM () {BLD_RunBenchMarksUDCFunc (this);} ;
afx_msg void wmIDM_DhrystoneCM () {BLD_RunDhrystoneUDCFunc (this);} ;
afx_msg void wmIDM_WhetstoneCM () {BLD_RunWhetstoneUDCFunc (this);} ;
afx_msg void wmIDM_DiskCM () {BLD_RunDiskUDCFunc (this);} ;
afx_msg void wmIDM_VideoalltestsCM () {BLD_RunVideoUDCFunc (this);} ;
afx_msg void wmIDM_TextScrollingCM () {BLD_TextScrollingUDCFunc (this);} ;
afx_msg void wmIDM_LineDrawingCM () {BLD_LineDrawingUDCFunc (this);} ;
afx_msg void wmIDM_FilledObjectsCM () {BLD_FilledObjectsUDCFunc (this);} ;
afx_msg void wmIDM_ColorDisplayCM () {BLD_ColorDisplayUDCFunc (this);} ;
afx_msg void wmIDM_DetailsCM () {BLD_ShowDetailsDlgFunc (this);} ;
afx_msg void wmIDM_AboutCM () {BLD_AboutDlgFunc (this);} ;
DECLARE_MESSAGE_MAP()
} ;
// *********************************************************************
// CLASS: CWinMakerClientDlg
// *********************************************************************
// This is a WindowsMAKER Client dialog class that encapsulates all the
// base functionality that WindowsMAKER provides for client dialogs. Every
// client dialog box in the system inherits from this class, and redefines
// attributes for that specific dialog box.
class CWinMakerClientDlg : public CDialog
{
public:
CWinMakerClientDlg () : CDialog () {} ;
virtual ~CWinMakerClientDlg() {} ;
friend BLDSwitchMenu (CWnd* pWnd, char *pTemplateName);
virtual BOOL doCreateIndirect (const BYTE FAR *pDlgTmp, CWnd *pParent = NULL)
{ return CreateIndirect (pDlgTmp, pParent); } ;
protected:
// for custom cleanup after WM_NCDESTROY
virtual void PostNcDestroy();
// Overridables (special message map entries)
virtual void OnOK(){};
virtual void OnCancel(){};
DECLARE_MESSAGE_MAP()
} ;
// Include of user header file
#include "NTHELL.HPP"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -