]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/menu.h
Added support more support for DB2
[wxWidgets.git] / include / wx / os2 / menu.h
index 381170896a0b3709d86f7242c402dfc822f51429..fac76609db604e267547430ec045b95093ddb3bc 100644 (file)
@@ -21,6 +21,8 @@
 
 class WXDLLEXPORT wxFrame;
 
+void wxSetShortCutKey(wxChar* zText);
+
 // ----------------------------------------------------------------------------
 // Menu
 // ----------------------------------------------------------------------------
@@ -123,6 +125,15 @@ public:
     //
     int FindAccel(int nId) const;
 #endif // wxUSE_ACCEL
+    //
+    // OS/2 specific Find
+    //
+    wxMenuItem* FindItem(int id, ULONG hItem, wxMenu **menu = NULL) const;
+    //virtual function hiding suppression
+    int FindItem(const wxString& rsString) const
+    { return wxMenuBase::FindItem(rsString); }
+    wxMenuItem* FindItem(int id, wxMenu **menu = NULL) const
+    { return wxMenuBase::FindItem(id, menu); }
 
     //
     // All OS/2PM Menu's have one of these
@@ -152,6 +163,11 @@ private:
     //
     WXHMENU                         m_hMenu;
 
+    //
+    // The helper variable for creating unique IDs.
+    //
+    static USHORT                  m_nextMenuId;
+
 #if wxUSE_ACCEL
     //
     // The accelerators for our menu items
@@ -212,7 +228,10 @@ public:
     virtual wxMenuItem* FindItem( int      nId
                                  ,wxMenu** ppMenu = NULL
                                 ) const;
-
+    virtual wxMenuItem* FindItem( int      nId
+                                 ,ULONG    hItem
+                                 ,wxMenu** ppMenu = NULL
+                                ) const;
     virtual void        EnableTop( size_t nPos
                                   ,bool   bFlag
                                  );