📄 macmain.h
字号:
#include <Menus.h>#include <Windows.h>#include <TextEdit.h>#include <Dialogs.h>#include <OSUtils.h>#include <ToolUtils.h>#include <SegLoad.h>#include <AppleEvents.h>#include <sound.h>#include <stdio.h>#include <Movies.h>#include <Gestalt.h>#include <QDOffscreen.h>#include <Types.h>#include <Quickdraw.h>#include "AICommon.h"#include "Toolbox.h"#define kOKButton 1#define kCancelButton 2void main(void);void OpenWindow(void);void Initialize(void);void SetUpMenus(void);void MainLoop();void DoMouseDown (EventRecord *theEvent);void DoMenus (long menuResult);void DoUpdate (WindowPtr wp);void DoKey (EventRecord *theEvent);void DoActivate (EventRecord *theEvent);Boolean fi_GetData(char inputText[kStringLength], char searchFor[kStringLength]);static pascal OSErr MyHandleOApp (const AppleEvent *appleEvt, AppleEvent* reply, long refCon);static pascal OSErr MyHandleODoc (const AppleEvent *appleEvt, AppleEvent* reply, long refCon);static pascal OSErr MyHandlePDoc (const AppleEvent *appleEvt, AppleEvent* reply, long refCon);static pascal OSErr MyHandleQuit( const AppleEvent *appleEvt, AppleEvent *reply, long refcon );pascal TBoolean GenericFilter (DialogPtr theDialog, EventRecord *theEvent, SInt16 *itemHit);void DoSuspendResume(Boolean InForeground);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -