Backported wxComboCtrl::ShouldDrawFocus() from wxWidgets 2.9. This makes wxMSW wxOwnerDrawnComboBox look more native when wxCB_READONLY is used.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@64397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -371,8 +371,8 @@ public:
|
|||||||
bool ShouldDrawFocus() const
|
bool ShouldDrawFocus() const
|
||||||
{
|
{
|
||||||
const wxWindow* curFocus = FindFocus();
|
const wxWindow* curFocus = FindFocus();
|
||||||
return ( !IsPopupShown() &&
|
return ( IsPopupWindowState(Hidden) &&
|
||||||
(curFocus == this || (m_btn && curFocus == m_btn)) &&
|
(curFocus == m_mainCtrlWnd || (m_btn && curFocus == m_btn)) &&
|
||||||
(m_windowStyle & wxCB_READONLY) );
|
(m_windowStyle & wxCB_READONLY) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user