- void UnsubclassWin();
-
- WXFARPROC OS2GetOldWndProc() const { return m_oldWndProc; }
- void OS2SetOldWndProc(WXFARPROC proc) { m_oldWndProc = proc; }
-
- wxWindow *FindItem(long id) const;
- wxWindow *FindItemByHWND(WXHWND hWnd, bool controlOnly = FALSE) const;
-
- // Make a Windows extended style from the given wxWindows window style
- static WXDWORD MakeExtendedStyle(long style,
- bool eliminateBorders = TRUE);
- // Determine whether 3D effects are wanted
- WXDWORD Determine3DEffects(WXDWORD defaultBorderStyle, bool *want3D) const;
-
- // MSW only: TRUE if this control is part of the main control
- virtual bool ContainsHWND(WXHWND WXUNUSED(hWnd)) const { return FALSE; };
-
- // returns TRUE if the window has been created
- bool OS2Create(int id,
- wxWindow *parent,
- const wxChar *wclass,
- wxWindow *wx_win,
- const wxChar *title,
- int x, int y, int width, int height,
- WXDWORD style,
- const wxChar *dialog_template = NULL,
- WXDWORD exendedStyle = 0);
- virtual bool OS2Command(WXUINT param, WXWORD id);
-
-#if WXWIN_COMPATIBILITY
- wxObject *GetChild(int number) const;
- virtual void OS2DeviceToLogical(float *x, float *y) const;
-#endif // WXWIN_COMPATIBILITY
-
+ void UnsubclassWin(void);
+
+ WXFARPROC OS2GetOldWndProc(void) const { return m_fnOldWndProc; }
+ void OS2SetOldWndProc(WXFARPROC fnProc) { m_fnOldWndProc = fnProc; }
+ //
+ // Return true if the window is of a standard (i.e. not wxWidgets') class
+ //
+ bool IsOfStandardClass(void) const { return m_fnOldWndProc != NULL; }
+
+ wxWindow* FindItem(long lId) const;
+ wxWindow* FindItemByHWND( WXHWND hWnd
+ ,bool bControlOnly = false
+ ) const;
+
+ // Make a Windows extended style from the given wxWidgets window style ?? applicable to OS/2??
+ static WXDWORD MakeExtendedStyle( long lStyle
+ ,bool bEliminateBorders = true
+ );
+
+ // PM only: true if this control is part of the main control
+ virtual bool ContainsHWND(WXHWND WXUNUSED(hWnd)) const { return false; }
+
+ // translate wxWidgets style flags for this control into the PM style
+ // and optional extended style for the corresponding native control
+ //
+ // this is the function that should be overridden in the derived classes,
+ // but you will mostly use OS2GetCreateWindowFlags() below
+ virtual WXDWORD OS2GetStyle( long lFlags
+ ,WXDWORD* pdwExstyle = NULL
+ ) const;
+
+ // get the MSW window flags corresponding to wxWidgets ones
+ //
+ // the functions returns the flags (WS_XXX) directly and puts the ext
+ // (WS_EX_XXX) flags into the provided pointer if not NULL
+ WXDWORD OS2GetCreateWindowFlags(WXDWORD* pdwExflags = NULL) const
+ { return OS2GetStyle(GetWindowStyle(), pdwExflags); }
+
+
+ // get the HWND to be used as parent of this window with CreateWindow()
+ virtual WXHWND OS2GetParent(void) const;
+
+ // returns true if the window has been created
+ bool OS2Create( PSZ zClass
+ ,const wxChar* zTitle
+ ,WXDWORD dwStyle
+ ,const wxPoint& rPos
+ ,const wxSize& rSize
+ ,void* pCtlData
+ ,WXDWORD dwExStyle
+ ,bool bIsChild
+ );
+ virtual bool OS2Command( WXUINT uParam
+ ,WXWORD nId
+ );
+
+#ifndef __WXUNIVERSAL__