wxSize/wxPoint/wxRect versions of functions added to wxMSW, wxMotif;

wxScrollBar::Set/GetPosition changed to Set/GetThumbPosition to avoid clash;
various other portability changes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-11-28 13:38:40 +00:00
parent f2b0391116
commit 4fabb57533
70 changed files with 875 additions and 308 deletions

View File

@@ -4342,6 +4342,35 @@ bool wxWindow::IsExposed(const wxRect& rect) const
return (m_updateRegion.Contains(rect) != wxOutRegion);
}
// Set this window to be the child of 'parent'.
bool wxWindow::Reparent(wxWindow *parent)
{
if (parent == GetParent())
return TRUE;
// Unlink this window from the existing parent.
if (GetParent())
{
GetParent()->RemoveChild(this);
}
else
wxTopLevelWindows.DeleteObject(this);
HWND hWndParent = 0;
HWND hWndChild = (HWND) GetHWND();
if (parent != (wxWindow*) NULL)
{
parent->AddChild(this);
hWndParent = (HWND) parent->GetHWND();
}
else
wxTopLevelWindows.Append(this);
::SetParent(hWndChild, hWndParent);
return TRUE;
}
#ifdef __WXDEBUG__
const char *wxGetMessageName(int message)
{