CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Sweden
    Posts
    30

    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


  2. #2
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    418

    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

  3. #3
    Join Date
    Apr 1999
    Posts
    24

    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
  •  





Click Here to Expand Forum to Full Width

Featured