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

📄 ginamodaldialog.h

📁 通过手机蓝牙控制个人电脑上的幻灯片的播放
💻 H
字号:
// GinaModalDialog.h
//
// Base class for all modal dialogs.
//

#pragma once

#include "WinLogonInterface.h"
#include "resource.h"

class GinaModalDialog {
public:
    GinaModalDialog(IWinLogon* pWinLogon, int dialogResourceID, HINSTANCE hInst = GetMyInstance())
        : _pWinLogon(pWinLogon), _hInst(hInst), _dialogResourceID(dialogResourceID) {
    }

    int Show() {
        return _pWinLogon->wlxDialogBoxParam(_hInst, MAKEINTRESOURCE(_dialogResourceID), 0, _dialogProc, (LPARAM)this);
    }

    virtual INT_PTR DialogProc(UINT msg, WPARAM wp, LPARAM lp);

protected:
    static INT_PTR CALLBACK _dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp);

    IWinLogon* _pWinLogon;
    HINSTANCE  _hInst;
    int        _dialogResourceID;
    HWND       _hwnd;
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -