- MoveWindow((HWND)m_hWnd, x1, y1, w1, h1, TRUE);
+ // the static box should always be on the bottom of the Z-order, otherwise
+ // it may hide controls which are positioned inside it
+ if ( !::SetWindowPos(GetHwnd(), HWND_TOP, 0, 0, 0, 0,
+ SWP_NOMOVE | SWP_NOSIZE) )
+ {
+ wxLogLastError(_T("SetWindowPos"));
+ }