|
-
April 22nd, 1999, 07:36 PM
#1
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
-
April 23rd, 1999, 04:07 AM
#2
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
-
April 23rd, 1999, 06:37 AM
#3
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, ...
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
|