Exemplo n.º 1
0
Arquivo: QApp.cpp Projeto: 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;
}
Exemplo n.º 2
0
CStdString QUIGetAppName()
{
    return QUIGetApp()->GetAppName();
}
Exemplo n.º 3
0
BOOL QUIIsQuiting()
{
    return QUIGetApp()->IsQuiting();
}