示例#1
0
文件: QApp.cpp 项目: Beifeng/qui
int QUIRun(__in HINSTANCE hInst)
{
    // this resolves ATL window thunking problem when Microsoft Layer for Unicode (MSLU) is used
    ::DefWindowProc(NULL, 0, 0, 0L);

    // AtlInitCommonControls(ICC_BAR_CLASSES); // add flags to support other controls
    int nRet = -1;
    QApp *pApp = QUIGetApp();
    if (NULL != pApp)
    {
        if (SUCCEEDED(pApp->Init(NULL, hInst)))
        {
			// 否则被优化掉了
            QUIGetInstance();
            nRet = pApp->Run(hInst);
        }
        pApp->Term();
    }
    return nRet;
}
示例#2
0
文件: QApp.cpp 项目: qiuchengw/qui
CStdString QUIGetAppName()
{
    return QUIGetApp()->GetAppName();
}
示例#3
0
文件: QApp.cpp 项目: qiuchengw/qui
BOOL QUIIsQuiting()
{
    return QUIGetApp()->IsQuiting();
}