CXTListTab.SetExtendedStyle Bug |
Post Reply |
Author | |
ysavourel
Newbie Joined: 03 November 2003 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 03 November 2003 at 4:04pm |
I've noticed a invalid behavior in the SetExtendedStyle method of CXTListCtrl (or more exactly of CXTListCtrlBase). The code is currently: AFX_INLINE void CXTListCtrlBase::SetExtendedStyle(DWORD dwExStyle) { ASSERT(::IsWindow(m_pListCtrl->GetSafeHwnd())); m_pListCtrl->SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, GetExtendedStyle()|dwExStyle); } The use of GetExtendedStyle() prevent the switching on/off of a style. For example: if ( g_nOptions & MAINOPTIONS_USEGRIDLINES ) m_List.SetExtendedStyle(m_List.GetExtendedStyle()|LVS_EX_GRI DLINES); else m_List.SetExtendedStyle(m_List.GetExtendedStyle()&~LVS_E X_GRIDLINES); does not work with CXTListCtrl, while is works with CListCtrl. Is there a reason for XT to use "GetExtendedStyle()|dwExStyle" instead of just "dwExStyle" ?
Thanks -yves
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |