Override AdjustForParentClientOrigin() in wxNonOwnedWindow to do nothing.
No real changes, just replace an IsTopLevel() check in the base class implementation of AdjustForParentClientOrigin() and override it for all top level windows in wxNonOwnedWindow instead. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -58,6 +58,17 @@ public:
|
||||
}
|
||||
#endif // wxUSE_GRAPHICS_CONTEXT
|
||||
|
||||
|
||||
// Overridden base class methods.
|
||||
// ------------------------------
|
||||
|
||||
virtual void AdjustForParentClientOrigin(int& WXUNUSED(x), int& WXUNUSED(y),
|
||||
int WXUNUSED(sizeFlags) = 0) const
|
||||
{
|
||||
// Non owned windows positions don't need to be adjusted for parent
|
||||
// client area origin so simply do nothing here.
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual bool DoClearShape()
|
||||
{
|
||||
|
Reference in New Issue
Block a user