diff options
author | nyamatongwe <devnull@localhost> | 2010-10-06 10:39:57 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-10-06 10:39:57 +1100 |
commit | 29c8d145ab97bb295885c9dd9126e5d04de10f7e (patch) | |
tree | a9401466ed941a141817d60752b18c1d2d291c5a | |
parent | 2e3a5bcb34e09833761b6e1fd92030bf1ab26a2a (diff) | |
download | scintilla-mirror-29c8d145ab97bb295885c9dd9126e5d04de10f7e.tar.gz |
Fix for bug #3079778: Autocompletion list overlaps text when WS_EX_CLIENTEDGE used
-rw-r--r-- | win32/PlatWin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 482808324..0421e5985 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1037,9 +1037,9 @@ void Window::SetPosition(PRectangle rc) { void Window::SetPositionRelative(PRectangle rc, Window w) { LONG style = ::GetWindowLong(reinterpret_cast<HWND>(wid), GWL_STYLE); if (style & WS_POPUP) { - RECT rcOther; - ::GetWindowRect(reinterpret_cast<HWND>(w.GetID()), &rcOther); - rc.Move(rcOther.left, rcOther.top); + POINT ptOther = {0, 0}; + ::ClientToScreen(reinterpret_cast<HWND>(w.GetID()), &ptOther); + rc.Move(ptOther.x, ptOther.y); // This #ifdef is for VC 98 which has problems with MultiMon.h under some conditions. #ifdef MONITOR_DEFAULTTONULL |