guihelper.h

来自「通过手机蓝牙控制个人电脑上的幻灯片的播放」· C头文件 代码 · 共 23 行

H
23
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?