📄 nthell.cpp
字号:
//Filename: NTHELL.CPP
//"NTHELL" Generated by WindowsMAKER Professional
//Author: Martin Heller
//
// ***********************************************************************
// Code in this file is initially generated by WindowsMAKER Professional.
// This file contains member functions you can change
// to provide whatever functionality you require. This file
// also contains the message maps for the classes.
// You can add functionality to all the functions referred to in
// the message map - however be careful to call the equivalent functions
// in the WindowsMAKER base classes if you overload any of the WindowsMAKER
// member functions. For more information, see the section
// "How code is generated" in the documentation.
// ***********************************************************************
//
// Classes:
// Cwm_Application
// Cwm_MainWnd
//
//
// ----------------
// | MFC CLASS |
// | |
// ----------------
// |
// ----------------
// | WindowsMAKER |
// | Common Class |
// ----------------
// |
// ----------------
// | WindowsMAKER |
// | Base Class |
// ----------------
// |
// ----------------
// | USER CLASS | <--- You are here
// | |
// ----------------
#include <afxwin.h>
#include "NTBENCH.H"
WMPDEBUG
#include "NTHELL.WMC"
// a simple way to reduce the size of C run times
// disables the use of the getenv and argv/argc
extern "C" void _setargv() { }
extern "C" void _setenvp() { }
// *********************************************************************
// Create the window application object. Sets the ball in
// motion for the entire application.
// *********************************************************************
Cwm_Application TheApp;
// *********************************************************************
// MAIN APPLICATION CLASS: Cwm_Application
// *********************************************************************
// The User window application. In this class, you can override any
// member functions in parent classes you need to, and add your own
// functionality.
// Initialize the application
BOOL Cwm_Application::InitApplication ()
{
// Base Class processing of InitApplication
return CWinMakerApp::InitApplication ();
}
// Initialize this instance of the application
BOOL Cwm_Application::InitInstance ()
{
SetDialogBkColor(); //default is gray background, black text
// Base Class processing of InitInstance
return CWinMakerApp::InitInstance ();
}
// Exit for this instance of the application
BOOL Cwm_Application::ExitInstance ()
{
// Base Class processing of ExitInstance
return CWinMakerApp::ExitInstance ();
}
// *********************************************************************
// MAIN WINDOW CLASS: Cwm_MainWnd
// *********************************************************************
// this is the message map for the generated window class,
// Cwm_MainWnd. You can define whatever message handlers you need
// to here. Note that some messages are already handled
// by the Cwm_MainBaseWnd base class, and unless you want to
// overload their functionality, it is not necessary to handle
// those messages here.
BEGIN_MESSAGE_MAP(Cwm_MainWnd,Cwm_MainBaseWnd)
ON_WM_SETFOCUS()
END_MESSAGE_MAP()
void Cwm_MainWnd::OnSetFocus (CWnd* pOldWnd)
{
// Base Class processing of OnSetFocus
Cwm_MainBaseWnd::OnSetFocus (pOldWnd);
}
// Procedure for processing message WM_CREATE
int Cwm_MainWnd::BLD_WM_CREATEMsg(LPCREATESTRUCT lpCreateStruct)
{
return CWinMakerFrameWnd::OnCreate (lpCreateStruct);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -