|
-
July 11th, 1999, 07:18 PM
#1
ModifyStyleEx vs. SetExtendStyle
I had wanted to make a ListControl box in a dialog or in a view to have the extended style of LVS_EX_GRIDLINES, LVS_EX_FULLROWSELECT and LVS_EX_CHECKBOXES. I had tried
m_wndListCtrl.ModifyStyleEx(0,LVS_EX_GRIDLINES|LVS_EX_FULLROWSELECT|LVS_EX_CHECKBOXES);
in OnInitDialog() or OnInitialUpdate() but failed. But using SetExtendedStyle works,
DWORD dwStyle=m_wndListCtrl.GetExtendedStyle();
dwStyle|=LVS_EX_GRIDLINES|LVS_EX_FULLROWSELECT|LVS_EX_CHECKBOXES;
m_wndListCtrl.SetExtendedStyle(dwStyle);
Could anybody tell me why? Thanks..
--
mailto://[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|