diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-02 19:46:07 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-02 19:46:07 +0000 |
commit | efba2eb356e50dc12e1da032c0b9a796463844ae (patch) | |
tree | 09db09d7857390b95657d3be7e2f7633be58efb3 /src/corelib/gdi | |
parent | 32904512aa7bbe143920944f6693a9ae2692fbb6 (diff) | |
download | fpGUI-efba2eb356e50dc12e1da032c0b9a796463844ae.tar.xz |
* Reverted the previous patch, except for the InvalidateRect() call.
Diffstat (limited to 'src/corelib/gdi')
-rw-r--r-- | src/corelib/gdi/gfx_gdi.pas | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/gdi/gfx_gdi.pas b/src/corelib/gdi/gfx_gdi.pas index b61fe4ac..e912de95 100644 --- a/src/corelib/gdi/gfx_gdi.pas +++ b/src/corelib/gdi/gfx_gdi.pas @@ -1418,14 +1418,14 @@ begin end; procedure TfpgWindowImpl.DoUpdateWindowPosition(aleft, atop, awidth, aheight: TfpgCoord); -//var -// bx, by: integer; +var + bx, by: integer; begin FSkipResizeMessage := True; -// GetWindowBorderDimensions(Self, bx, by); + GetWindowBorderDimensions(Self, bx, by); Windows.SetWindowPos( WinHandle, HWND_TOP, - aleft, atop, awidth {+ bx}, aheight {+ by}, + aleft, atop, awidth + bx, aheight + by, SWP_NOZORDER);// or SWP_NOREDRAW); Windows.InvalidateRect(WinHandle, nil, True); FSkipResizeMessage := False; |