create/createex HELP!!!!! :)
Hello,
When I create my listview ctrl I do:
m_list.Create(dwStyle, rect, pParentWnd, nID);
The problem is I want to use extended windows styles as WS_EX_CLIENTEDGE, then I guess I need to create it with CreateEx?
How the heck do I do this?
I've tried m_list.CreateEx(WS_EX_CLIENTEDGE, WC_LISTVIEW, NULL, dwStyle, rect, phwndParent, NULL);
But this just creates a assert failure when trying to insert a new column/items etc
help!!!!
-- ODIN/HENRIK
Re: create/createex HELP!!!!! :)
Hi Odin,
I must confess, I'm too lazy to look after a solution to do it with CreateEx ;-) But you can achieve it with ModifyStyleEx( 0, WS_EX_CLIENTEDGE ); after creating the list ctrl, too.
HTH
Martin
Re: create/createex HELP!!!!! :)
You do not use CreateEx to apply extended styles. Just use Create() to create the window with standard styles, then use ::SetWindowLong( hWnd, GWL_EXSTYLE, ...