summaryrefslogtreecommitdiff
path: root/src/test/w32dtst.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/w32dtst.cpp')
-rw-r--r--src/test/w32dtst.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/w32dtst.cpp b/src/test/w32dtst.cpp
index e940bcd..21074f6 100644
--- a/src/test/w32dtst.cpp
+++ b/src/test/w32dtst.cpp
@@ -300,6 +300,14 @@ private:
switch(cmd)
{
+ case IDMENUDIALOG:
+ {
+ Test t;
+
+ t.ShowModal(W32DLib::Common::GetInstance(),m_wnd);
+ break;
+ }
+
case IDMENUQUIT:
Dialog::Close(IDCANCEL);
break;
@@ -396,6 +404,15 @@ int WINAPI WinMain (HINSTANCE hInstance,
WriteInt("ro",rd,"int");
WriteStr("ro",rd,"str");
+ if (hInstance==W32DLib::Common::GetInstance())
+ {
+ std::cout << "Common::GetInstance() OK" << std::endl;
+ }
+ else
+ {
+ std::cout << "Common::GetInstance() FAILED" << std::endl;
+ }
+
i=t.ShowModal(hInstance,NULL);
if (i==IDOK)