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

📄 ginamodaldialog.cpp

📁 通过手机蓝牙控制个人电脑上的幻灯片的播放
💻 CPP
字号:
// GinaModalDialog.cpp
//
// Gather user credentials for Modal.
//

#include "stdafx.h"
#include "GinaModalDialog.h"
#include "GuiHelper.h"

INT_PTR CALLBACK GinaModalDialog::_dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) {
    if (WM_INITDIALOG == msg) {
        ((GinaModalDialog*)lp)->_hwnd = hwnd;
        GuiHelper::SetWindowLongPointer(hwnd, GWLP_USERDATA, lp);
        GuiHelper::CenterWindow(hwnd);
    }
	GinaModalDialog* dlg = (GinaModalDialog*)GuiHelper::GetWindowLongPointer(hwnd, GWLP_USERDATA);

    // WM_SETFONT is coming in before WM_INITDIALOG
    // in which case GWLP_USERDATA won't be set yet.
	if (dlg) {
		return dlg->DialogProc(msg, wp, lp);
	}
    return FALSE;
}

INT_PTR GinaModalDialog::DialogProc(UINT, WPARAM, LPARAM) {
    return FALSE;
}

⌨️ 快捷键说明

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