diff options
author | nyamatongwe <unknown> | 2010-10-06 10:39:57 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-10-06 10:39:57 +1100 |
commit | 9a54c8025d999a83dcd3ded1b31c3edc0b10c8eb (patch) | |
tree | 58d0e9bbdb225b86c45fbbbbbd7149f5849bacd3 /win32/PlatWin.cxx | |
parent | 1062c8c9cd4325bfa1083929e71cb45af296816d (diff) | |
download | scintilla-mirror-9a54c8025d999a83dcd3ded1b31c3edc0b10c8eb.tar.gz |
Fix for bug #3079778: Autocompletion list overlaps text when WS_EX_CLIENTEDGE used
Diffstat (limited to 'win32/PlatWin.cxx')
-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 |