// Implementation from now on
// --------------------------
//
- virtual void AlterChildPos(void); // OS/2 child control positioning
- virtual void UpdateInternalSize( wxWindow* pChild
- ,int nWidth
- ,int nHeight
- );
PSWP GetSwpClient(void) { return &m_vSwpClient; }
protected:
//
);
void MoveChildren(int nDiff);
+ PSWP GetSwp(void) {return &m_vWinSwp;}
protected:
// PM can't create some MSW styles natively but can perform these after
#endif // wxUSE_TOOLTIPS
int GetOS2ParentHeight(wxWindowOS2* pParent);
- virtual void OS2Layout(int nWidth, int nHeight);
private:
// common part of all ctors
private:
HWND m_hWndScrollBarHorz;
HWND m_hWndScrollBarVert;
+ SWP m_vWinSwp;
// Virtual function hiding supression
inline virtual bool Reparent(wxWindowBase* pNewParent)
// so should be there for all platforms
void OnActivate(wxActivateEvent &WXUNUSED(event)) { }
- // Override in derived, platfrom specific, class if your OS coordinate
- // system uses anything other than the top left as 0,0. The second
- // method updates any internal sizing parameters such as OS/2's SWP struct
- inline virtual void AlterChildPos(void) { }
- inline virtual void UpdateInternalSize( wxWindow* WXUNUSED(pChild)
- ,int WXUNUSED(nWidth)
- ,int WXUNUSED(nHeight)
- ) { }
-
protected:
// the frame client to screen translation should take account of the
// toolbar which may shift the origin of the client area
// a toolbar that it manages itself).
virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags);
-#ifdef __WXPM__
- // extra OS/2 layout processing
- virtual void OS2Layout(int width, int height) { };
-#endif
private:
{
if ( child )
{
-#ifdef __WXPM__
- AlterChildPos();
-#endif
return; // it's our second subwindow - nothing to do
}
static const int ofs = 0;
#endif
-#ifdef __WXPM__
- // OS/2 PM has to do a LOT of stuff to get things
- // positioned right, especially if the child is a
- // scrolled window.
- UpdateInternalSize(child, clientW, clientH);
-#else
child->SetSize(ofs, ofs, clientW - 2*ofs, clientH - 2*ofs);
-#endif
}
}
}
GetClientSize(&w, &h);
GetSizer()->SetDimension( 0, 0, w, h );
-#if defined __WXPM__
- OS2Layout(w, h);
-#endif
}
else
{