SimpleWindow
载入中...
搜索中...
未找到
sw::App类 参考

App类 更多...

#include <App.h>

静态 Public 成员函数

static int MsgLoop ()
 消息循环
 
static void QuitMsgLoop (int exitCode=0)
 退出当前线程的消息循环
 

静态 Public 属性

static const ReadOnlyProperty< HINSTANCE > Instance
 应用程序的当前实例的句柄
 
static const ReadOnlyProperty< std::wstring > ExePath
 当前exe的文件路径
 
static const ReadOnlyProperty< std::wstring > ExeDirectory
 当前exe所在的文件夹路径
 
static const Property< std::wstring > CurrentDirectory
 当前工作路径
 
static const Property< AppQuitMode > QuitMode
 当前线程退出消息循环的方式
 
static thread_local Action< MSG & > NullHwndMsgHandler
 当前线程消息循环中处理空句柄消息的回调函数
 

详细描述

App类

成员函数说明

◆ MsgLoop()

static int sw::App::MsgLoop ( )
static

消息循环

返回
退出代码

◆ QuitMsgLoop()

static void sw::App::QuitMsgLoop ( int  exitCode = 0)
static

退出当前线程的消息循环

参数
exitCode退出代码

类成员变量说明

◆ NullHwndMsgHandler

thread_local Action<MSG &> sw::App::NullHwndMsgHandler
static

当前线程消息循环中处理空句柄消息的回调函数

注解
该委托是线程局部的,每个线程有各自独立的值

◆ QuitMode

const Property<AppQuitMode> sw::App::QuitMode
static

当前线程退出消息循环的方式

注解
该属性是线程局部的,每个线程有各自独立的值

该类的文档由以下文件生成: