]> git.saurik.com Git - wxWidgets.git/commitdiff
Smartphone specific resource files.
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 16 Jun 2004 06:17:27 +0000 (06:17 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 16 Jun 2004 06:17:27 +0000 (06:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/wince/resources.h [new file with mode: 0644]
include/wx/msw/wince/smartphone.rc [new file with mode: 0644]
include/wx/msw/wince/wince.rc [new file with mode: 0644]

diff --git a/include/wx/msw/wince/resources.h b/include/wx/msw/wince/resources.h
new file mode 100644 (file)
index 0000000..9f49f0f
--- /dev/null
@@ -0,0 +1,25 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name:        wx/msw/wince/resources.h
+// Purpose:     identifiers shared between resource compiler and eVC
+// Author:      Wlodzimierz ABX Skiba
+// Modified by:
+// Created:     01.05.2004
+// RCS-ID:      $Id$
+// Copyright:   (c) Wlodzimierz Skiba
+// License:     wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#define IDM_LEFT                 40001
+#define IDM_RIGHT                40002
+#define IDM_ITEM                 40003
+
+#define IDS_EMPTY                40010
+
+#define IDR_POPUP_1              40020
+#define IDR_POPUP_2              40021
+
+#define IDR_MENUBAR_ONE_BUTTON   40030
+#define IDR_MENUBAR_LEFT_MENU    40031
+#define IDR_MENUBAR_RIGHT_MENU   40032
+#define IDR_MENUBAR_BOTH_MENUS   40033
+
diff --git a/include/wx/msw/wince/smartphone.rc b/include/wx/msw/wince/smartphone.rc
new file mode 100644 (file)
index 0000000..07b39c5
--- /dev/null
@@ -0,0 +1,67 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name:        wx/msw/wince/smartphone.h
+// Purpose:     resources for Smartphone build
+// Author:      Wlodzimierz ABX Skiba
+// Modified by:
+// Created:     01.05.2004
+// RCS-ID:      $Id$
+// Copyright:   (c) Wlodzimierz Skiba
+// License:     wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#include <aygshell.h>
+
+#include "wx\msw\wince\resources.h"
+
+STRINGTABLE
+BEGIN
+    IDS_EMPTY   ""
+END
+
+IDR_POPUP_1 MENU
+BEGIN
+    POPUP ""
+    BEGIN
+        MENUITEM "M", IDM_ITEM
+    END
+END
+
+IDR_POPUP_2 MENU
+BEGIN
+    POPUP ""
+    BEGIN
+        MENUITEM "M", IDM_ITEM
+    END
+    POPUP ""
+    BEGIN
+        MENUITEM "M", IDM_ITEM
+    END
+END
+
+IDR_MENUBAR_ONE_BUTTON RCDATA
+BEGIN
+    0,2,
+    I_IMAGENONE, IDM_LEFT,  TBSTATE_ENABLED, TBSTYLE_BUTTON   | TBSTYLE_AUTOSIZE, IDS_EMPTY, 0, NOMENU,
+    I_IMAGENONE, IDM_RIGHT, TBSTATE_ENABLED, TBSTYLE_BUTTON   | TBSTYLE_AUTOSIZE, IDS_EMPTY, 0, NOMENU,
+END
+
+IDR_MENUBAR_LEFT_MENU RCDATA
+BEGIN
+    IDR_POPUP_1,1,
+    I_IMAGENONE, IDM_LEFT,  TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE, IDS_EMPTY, 0, 0,
+END
+
+IDR_MENUBAR_RIGHT_MENU RCDATA
+BEGIN
+    IDR_POPUP_1,2,
+    I_IMAGENONE, IDM_LEFT,  TBSTATE_ENABLED, TBSTYLE_BUTTON   | TBSTYLE_AUTOSIZE, IDS_EMPTY, 0, NOMENU,
+    I_IMAGENONE, IDM_RIGHT, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE, IDS_EMPTY, 0, 0,
+END
+
+IDR_MENUBAR_BOTH_MENUS RCDATA
+BEGIN
+    IDR_POPUP_2,2,
+    I_IMAGENONE, IDM_LEFT,  TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE, IDS_EMPTY, 0, 0,
+    I_IMAGENONE, IDM_RIGHT, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE, IDS_EMPTY, 0, 1,
+END
+
diff --git a/include/wx/msw/wince/wince.rc b/include/wx/msw/wince/wince.rc
new file mode 100644 (file)
index 0000000..1ab2a7f
--- /dev/null
@@ -0,0 +1,26 @@
+#include <commctrl.h>
+
+#ifdef WIN32_PLATFORM_WFSP
+    #include "wx\msw\wince\smartphone.rc"
+#else
+
+// Dummy menubar/toolbar for WinCE
+
+5000 RCDATA DISCARDABLE
+BEGIN
+  // Popup menu name
+  5000,
+  // Count of items to put on the menu
+  0
+END
+
+5000 MENU DISCARDABLE
+BEGIN
+    POPUP "Dummy"
+    BEGIN
+    MENUITEM "Dummy" 99
+    END
+END
+
+#endif
+