向combo中加新标签
CListLabelElementUI* pAdd = new CListLabelElementUI;
CString act;
act.Format(_T("%d"),i);
pAdd->SetText(act.GetBuffer());
m_pAccountCombo->Add(pAdd);
希望打开combo后 上下移动不关闭combo窗口
可屏蔽CComboUI::SelectItem中if( m_pWindow != NULL ) m_pWindow->Close();
希望combo操作时,上下移动不触发itemselect消息
可把CComboUI::SelectItem中
if( m_pManager != NULL ) m_pManager->SendNotify(this, _T("itemselect"), m_iCurSel, iOldSel);
移动到CComboWnd::HandleMessage的case VK_RETURN:下
if( m_pOwner->m_pManager != NULL ) m_pOwner->m_pManager->SendNotify(m_pOwner, _T("itemselect"), m_pOwner->m_iCurSel, 0);
PostMessage(WM_KILLFOCUS);
break;
duilib界面库中,combo控件
最新推荐文章于 2024-08-10 22:58:42 发布