⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guihelper.h

📁 通过手机蓝牙控制个人电脑上的幻灯片的播放
💻 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 + -