Eliminated some code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
18d491685c
commit
c649a6aba4
@ -89,17 +89,13 @@ WXHWND wxPopupWindow::MSWGetParent() const
|
||||
|
||||
bool wxPopupWindow::Show(bool show)
|
||||
{
|
||||
if ( !wxWindowBase::Show(show) )
|
||||
if ( !wxWindowMSW::Show(show) )
|
||||
return FALSE;
|
||||
|
||||
HWND hWnd = GetHwnd();
|
||||
int cshow = show ? SW_SHOW : SW_HIDE;
|
||||
::ShowWindow(hWnd, cshow);
|
||||
|
||||
if ( show )
|
||||
{
|
||||
// raise to top of z order
|
||||
if (!::SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE))
|
||||
if (!::SetWindowPos(GetHwnd(), HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE))
|
||||
{
|
||||
wxLogLastError(_T("SetWindowPos"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user