wxmain.h

来自「LastWave」· C头文件 代码 · 共 52 行

H
52
字号
#ifndef _WX_WXMAIN_H_#define _WX_WXMAIN_H_// Some definitions to take care of wxWidget 2.6 --> wxWidget 2.8 incompatibility !!#ifdef __WX26__#define __CASEMAC case wxMAC : case wxMAC_DARWIN #define __CASEWINDOWS case wxWINDOWS_NT #define __CASEUNIX case wxGTK #else#define __CASEMAC case wxOS_MAC_OS : case wxOS_MAC_OSX_DARWIN#define __CASEWINDOWS case wxOS_WINDOWS_9X : case wxOS_WINDOWS_NT #define __CASEUNIX case wxOS_UNIX_LINUX #endif// Define a new application typeclass MyApp : public wxApp{public:        MyApp() {};        TerminalFrame *terminal;    bool OnInit();    int OnExit() {return wxApp::OnExit();}private:    DECLARE_DYNAMIC_CLASS(MyApp)    DECLARE_EVENT_TABLE()};DECLARE_APP(MyApp)extern MyApp *myApp;#ifdef UNICODE#include <wx/string.h>#include <wx/strconv.h>//#define WXSTRING2ANSI(str) ((char*) str.mb_str(wxConvUTF8))#define WXSTRING2ANSI(str) ((char *) ((const char*) str.mb_str()))#define ANSI2WXSTRING(input) (wxString(input, wxConvUTF8))#else#define WXSTRING2ANSI(str) ((char*) str.c_str())#define ANSI2WXSTRING(input) (wxString(input))#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?