Soem corrections for SetSize changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-02-22 13:28:13 +00:00
parent bfc6fde4b1
commit 2de8030dbe
4 changed files with 10 additions and 10 deletions

View File

@@ -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);