- // PM 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( WXHWND hParent
- ,PSZ zClass
- ,const wxChar* zTitle
- ,WXDWORD dwStyle
- ,long lX
- ,long lY
- ,long lWidth
- ,long lHeight
- ,WXHWND hOwner
- ,WXHWND hZOrder
- ,unsigned long lId
- ,void* pCtlData = NULL
- ,void* pPresParams = NULL
- );
+ // 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
+ );