📄 oscillograph.h
字号:
#define dim(x) (sizeof(x) / sizeof(x[0]))
//----------------------------------------------------------------------
// Generic defines and data types
//
struct decodeUINT { // Structure associates
UINT Code; // messages
// with a function.
LRESULT (*Fxn)(HWND, UINT, WPARAM, LPARAM);
};
struct decodeCMD { // Structure associates
UINT Code; // menu IDs with a
LRESULT (*Fxn)(HWND, WORD, HWND, WORD); // function.
};
//----------------------------------------------------------------------
// Function prototypes
//
HWND InitInstance (HINSTANCE, LPWSTR, int);
int TermInstance (HINSTANCE, int);
LRESULT CreateMenubar(HWND hWnd);
LRESULT DrawCoor(HWND hWnd);
LRESULT DrawLine(HWND hWnd);
// Window procedures
LRESULT CALLBACK MainWndProc (HWND, UINT, WPARAM, LPARAM);
// Message handlers
LRESULT DoCreateMain (HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
LRESULT DoPaintMain (HWND, UINT, WPARAM, LPARAM);
LRESULT DoTimerMain (HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);
LRESULT DoCommandMain (HWND hWnd, UINT wMsg, WPARAM wParam,LPARAM lParam);
LRESULT DoDestroyMain (HWND, UINT, WPARAM, LPARAM);
// Command handlers
LPARAM DoMainCommandExit (HWND hWnd, WORD idItem, HWND hwndCtl,WORD wNotifyCode);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -