From 2de8030dbe61287fb398057d61dd22fe45078c1d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 22 Feb 1999 13:28:13 +0000 Subject: [PATCH] Soem corrections for SetSize changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dialog.cpp | 2 +- src/msw/frame.cpp | 6 +++--- src/msw/mdi.cpp | 4 ++-- src/msw/window.cpp | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index d5f4085fa6..e68427dbd2 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -252,7 +252,7 @@ void wxDialog::SetClientSize(int width, int height) { HWND hWnd = (HWND) GetHWND(); RECT rect; - GetClientRect(hWnd, &rect); + ::GetClientRect(hWnd, &rect); RECT rect2; GetWindowRect(hWnd, &rect2); diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index d98fffe623..2f9d0dabb7 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -167,7 +167,7 @@ WXHMENU wxFrame::GetWinMenu() const void wxFrame::GetClientSize(int *x, int *y) const { RECT rect; - GetClientRect((HWND) GetHWND(), &rect); + ::GetClientRect((HWND) GetHWND(), &rect); if ( GetStatusBar() ) { @@ -191,7 +191,7 @@ void wxFrame::DoSetClientSize(int width, int height) HWND hWnd = (HWND) GetHWND(); RECT rect; - GetClientRect(hWnd, &rect); + ::GetClientRect(hWnd, &rect); RECT rect2; GetWindowRect(hWnd, &rect2); @@ -657,7 +657,7 @@ bool wxFrame::MSWOnPaint() if (the_icon) { RECT rect; - GetClientRect((HWND) GetHWND(), &rect); + ::GetClientRect((HWND) GetHWND(), &rect); int icon_width = 32; int icon_height = 32; int icon_x = (int)((rect.right - icon_width)/2); diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 61653c10fe..1e91b0cbcf 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -167,7 +167,7 @@ wxMDIParentFrame::~wxMDIParentFrame(void) void wxMDIParentFrame::GetClientSize(int *x, int *y) const { RECT rect; - GetClientRect((HWND) GetHWND(), &rect); + ::GetClientRect((HWND) GetHWND(), &rect); int cwidth = rect.right; int cheight = rect.bottom; @@ -731,7 +731,7 @@ void wxMDIChildFrame::SetClientSize(int width, int height) HWND hWnd = (HWND) GetHWND(); RECT rect; - GetClientRect(hWnd, &rect); + ::GetClientRect(hWnd, &rect); RECT rect2; GetWindowRect(hWnd, &rect2); diff --git a/src/msw/window.cpp b/src/msw/window.cpp index e737b2328d..273cc8c759 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -670,12 +670,12 @@ void wxWindow::GetClientSize(int *x, int *y) const { HWND hWnd = (HWND) GetHWND(); RECT rect; - GetClientRect(hWnd, &rect); + ::GetClientRect(hWnd, &rect); *x = rect.right; *y = rect.bottom; } -void wxWindow::SetSize(int x, int y, int width, int height, int sizeFlags) +void wxWindow::DoSetSize(int x, int y, int width, int height, int sizeFlags) { int currentX, currentY; GetPosition(¤tX, ¤tY); @@ -706,14 +706,14 @@ void wxWindow::SetSize(int x, int y, int width, int height, int sizeFlags) MoveWindow(hWnd, actualX, actualY, actualWidth, actualHeight, (BOOL)TRUE); } -void wxWindow::SetClientSize(int width, int height) +void wxWindow::DoSetClientSize(int width, int height) { wxWindow *parent = GetParent(); HWND hWnd = (HWND) GetHWND(); HWND hParentWnd = (HWND) (HWND) parent->GetHWND(); RECT rect; - GetClientRect(hWnd, &rect); + ::GetClientRect(hWnd, &rect); RECT rect2; GetWindowRect(hWnd, &rect2); -- 2.45.2