📄 stdafx.h
字号:
#ifndef __STDAFX_H__
#define __STDAFX_H__
#define STRICT
#define WIN32_LEAN_AND_MEAN
#include <stdlib.h>
#include <time.h>
#include <tchar.h>
#include <windows.h>
#include <windowsx.h>
#include <process.h>
#include "wndproc.h"
#include "resource.h"
typedef unsigned (WINAPI *PTHREAD_START) (void *);
#define SetDlgMsgResult1(hwnd, msg, result) \
(( \
(msg) == WM_CTLCOLORMSGBOX || \
(msg) == WM_CTLCOLOREDIT || \
(msg) == WM_CTLCOLORLISTBOX || \
(msg) == WM_CTLCOLORBTN || \
(msg) == WM_CTLCOLORDLG || \
(msg) == WM_CTLCOLORSCROLLBAR || \
(msg) == WM_CTLCOLORSTATIC || \
(msg) == WM_COMPAREITEM || \
(msg) == WM_VKEYTOITEM || \
(msg) == WM_CHARTOITEM || \
(msg) == WM_QUERYDRAGICON || \
(msg) == WM_INITDIALOG || \
(msg) == WM_SYSCOMMAND \
) ? (bool)(result) : \
(SetWindowLong((hwnd), DWL_MSGRESULT, (LPARAM)(LRESULT)(result)), true))
//#define HANDLE_MSG
#define HANDLE_DLGMSG(hwnd, message, fn) \
case (message): return SetDlgMsgResult1(hwnd, message, \
HANDLE_##message((hwnd), (wParam), (lParam), (fn)))
#define HANDLE_CMD(hwnd, id, fn) \
case (id): (fn)(hwnd, hwndCtl, codeNotify); return
extern HWND g_hMainWnd;
extern HINSTANCE g_hInstance;
#endif //__STDAFX_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -