mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#include "StdAfx.h"
|
||||
#include "MainDialog.h"
|
||||
|
||||
#include "LegacyDialog.h"
|
||||
#include "ProgressDialog.h"
|
||||
#include "TaskDialog.h"
|
||||
#include "VistaTools.h"
|
||||
|
||||
CMainDialog* CMainDialog::Create(HINSTANCE instance)
|
||||
{
|
||||
CMainDialog *result = NULL;
|
||||
/*
|
||||
We wont hide cancel button.
|
||||
Vista uses task dialog, I was not able to find
|
||||
the way to hide all buttons on TaskDialog.
|
||||
|
||||
if (IsVista())
|
||||
result = new CTaskDialog(instance);
|
||||
else
|
||||
*/
|
||||
result = new CProgressDialog(instance);
|
||||
|
||||
result->SetCancelVisible(false);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user