📄 guihelper.h
字号:
// GuiHelper.h
//
// Common utilities for window management.
//
#pragma once
class GuiHelper {
public:
// Avoids some spurious warnings that the /Wp64 compiler switch generates.
// See http://pluralsight.com/blogs/keith/archive/2005/01/13/4940.aspx
// for a discussion of the issue.
static void SetWindowLongPointer(HWND hwnd, int index, LONG_PTR dwNewLong);
static LONG_PTR GetWindowLongPointer(HWND hwnd, int index);
// simple and obvious helper functions
static void CenterWindow(HWND hwnd);
static bool SetControlText(HWND hDlg, int id, const wchar_t* pText);
static bool ExtractControlText(HWND hDlg, int id, wchar_t** ppText);
private:
GuiHelper() {} // not meant to be instantiated
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -