Thank you for your suggestion.
You can make the following to fix it: (or wait next version)
in XTPToolbar.cpp change the following function:
LRESULT CXTPToolBar::OnFloatStatus(WPARAM wParam, LPARAM) { // FS_SYNCACTIVE is used to detect MFS_SYNCACTIVE windows LRESULT lResult = ((GetStyle() & MFS_SYNCACTIVE) && (wParam & FS_SYNCACTIVE));
if (m_barPosition != xtpBarFloating || !m_bVisible) return lResult;
if ((wParam & FS_DEACTIVATE) && !IsTopParentActive()) { SetWindowPos(NULL, 0, 0, 0, 0, SWP_HIDEWINDOW | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); } if ((wParam & FS_ACTIVATE) && !IsWindowVisible() && IsTopParentActive()) { // check if parent invisible or minimized window DWORD dwStyle = ::GetWindowLong(::GetForegroundWindow(), GWL_STYLE); if ((dwStyle & WS_VISIBLE) && !(dwStyle & WS_MINIMIZE)) SetWindowPos(NULL, 0, 0, 0, 0, SWP_SHOWWINDOW | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); } if (wParam & (FS_SHOW|FS_HIDE)) { SetWindowPos(NULL, 0, 0, 0, 0, ((wParam & FS_SHOW) ? SWP_SHOWWINDOW : SWP_HIDEWINDOW) | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); } if (wParam & (FS_ENABLE|FS_DISABLE)) EnableWindow((wParam & FS_ENABLE) != 0);
return lResult; }
in XTPControlComboBox.cpp change the following function:
CXTPControlComboBox::CXTPControlComboBox(void) { m_controlType = xtpControlComboBox; m_dwDropDown = CBS_DROPDOWN; m_comboStyle = xtpComboNormal; m_nWidth = 100; m_nLabelWidth = 0; m_pEdit = 0; m_pCommandBar = new CListBoxExt(); m_pCommandBar->CreateEx(WS_EX_STATICEDGE, _T("LISTBOX"), _T(""), WS_POPUP|WS_VSCROLL|WS_BORDER|WS_CLIPCHILDREN, CRect(0,0,0,0), AfxGetMainWnd(), 0); }
|