CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    CListCtrl:No 3D look


    I try to create a ListCtrl like this

    DWORD dwStyle=LVS_REPORT|LVS_SHOWSELALWAYS
    |LVS_SINGLESEL|LVS_NOSORTHEADER
    |WS_VISIBLE|WS_CHILD|WS_TABSTOP
    |WS_EX_CLIENTEDGE|WS_EX_WINDOWEDGE|WS_BORDER;
    if(!m_ListCtrl.Create(dwStyle,tmpRect,this,IDC_LISTCTRLWINDOWID))
    return -1;

    But it always does not have a 3D look.
    How to get a 3D look ListCtrl without using dialog editor?

    Thanks in advance
    wave



  2. #2
    Join Date
    Sep 1999
    Location
    Europe / Austria / Innsbruck
    Posts
    442

    Re: CListCtrl:No 3D look

    Hi, to use extended window styles (WS_EX_*) you cannot use the function Create. Use CreateEx instead.


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