Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTListTab.SetExtendedStyle Bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTListTab.SetExtendedStyle Bug

 Post Reply Post Reply
Author
Message
ysavourel View Drop Down
Newbie
Newbie


Joined: 03 November 2003
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote ysavourel Quote  Post ReplyReply Direct Link To This Post Topic: CXTListTab.SetExtendedStyle Bug
    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

 

 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.