summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-04-17 23:57:44 +0000
committerIan C <ianc@noddybox.co.uk>2005-04-17 23:57:44 +0000
commit9d0c916a1c22615b25f84b8a219df1f607a110e5 (patch)
treee7391f4dde1b5a5c01bd3988915428520229b94d /src
parentd496cf2407129524c50169a56b6a296afa34dbd4 (diff)
Test updates
Diffstat (limited to 'src')
-rw-r--r--src/test/dialog.h1
-rw-r--r--src/test/dialog.rc1
-rw-r--r--src/test/w32dtst.cpp17
3 files changed, 19 insertions, 0 deletions
diff --git a/src/test/dialog.h b/src/test/dialog.h
index d70c14c..fe5f467 100644
--- a/src/test/dialog.h
+++ b/src/test/dialog.h
@@ -25,3 +25,4 @@
#define IDRADIO1 25
#define IDRADIO2 26
#define IDRADIO3 27
+#define IDMENUDIALOG 28
diff --git a/src/test/dialog.rc b/src/test/dialog.rc
index 233389c..d655dab 100644
--- a/src/test/dialog.rc
+++ b/src/test/dialog.rc
@@ -36,6 +36,7 @@ IDMENU MENU
{
MENUITEM "Load", IDMENULOAD
MENUITEM "Save", IDMENUSAVE
+ MENUITEM "Dialog", IDMENUDIALOG
MENUITEM "Quit", IDMENUQUIT
}
POPUP "Test"
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)