[win32k]
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 19 Feb 2011 16:09:59 +0000 (16:09 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 19 Feb 2011 16:09:59 +0000 (16:09 +0000)
- Fix combobox to show the drop down window correctly when the parent window is topmost
See issue #5705 for more details.

svn path=/trunk/; revision=50818

reactos/dll/win32/user32/controls/combo.c

index de6c646..4229531 100644 (file)
@@ -1119,7 +1119,7 @@ static void CBDropDown( LPHEADCOMBO lphc )
    if( (rect.bottom + nDroppedHeight) >= mon_info.rcWork.bottom )
       rect.bottom = rect.top - nDroppedHeight;
 
-   SetWindowPos( lphc->hWndLBox, HWND_TOP, rect.left, rect.bottom,
+   SetWindowPos( lphc->hWndLBox, HWND_TOPMOST, rect.left, rect.bottom,
                 lphc->droppedRect.right - lphc->droppedRect.left,
                 nDroppedHeight,
                 SWP_NOACTIVATE | SWP_SHOWWINDOW);