Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Vertical/Horizontal scroll bar not coming in CListCtrl

Vertical/Horizontal scroll bar not coming in CListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
helptutoriallearning
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _T No name
    wrote on last edited by
    #1

    hi, i am trying to make a customized Clist control. i have written my Class derived from CListCtrl. The problem is in this Vertical scroll bar are not coming when i dynamically create this list control. if i create it in resource and use DDX_Control and take it as my class variable it works fine(scroll bar comes) but if i create control dynamically scroll bars dont come. This is the creation code

    m_pList = new CCustomList(12);

    m\_pList->Create(LVS\_REPORT | LVS\_SINGLESEL | LVS\_EDITLABELS | WS\_CHILD | WS\_TABSTOP ,
                    CRect(0,0,620,100),this,IDC\_LIST3);
    
    DWORD dwStyle = m\_pList->GetExtendedStyle();
    dwStyle |= (LVS\_EX\_GRIDLINES | LVS\_EX\_FULLROWSELECT);
    m\_pList->SetExtendedStyle(dwStyle);
    

    please help if any one has any idea. i searched on net there are many ways to remove them but no solution how to show them. Thanks

    _ 1 Reply Last reply
    0
    • _ _T No name

      hi, i am trying to make a customized Clist control. i have written my Class derived from CListCtrl. The problem is in this Vertical scroll bar are not coming when i dynamically create this list control. if i create it in resource and use DDX_Control and take it as my class variable it works fine(scroll bar comes) but if i create control dynamically scroll bars dont come. This is the creation code

      m_pList = new CCustomList(12);

      m\_pList->Create(LVS\_REPORT | LVS\_SINGLESEL | LVS\_EDITLABELS | WS\_CHILD | WS\_TABSTOP ,
                      CRect(0,0,620,100),this,IDC\_LIST3);
      
      DWORD dwStyle = m\_pList->GetExtendedStyle();
      dwStyle |= (LVS\_EX\_GRIDLINES | LVS\_EX\_FULLROWSELECT);
      m\_pList->SetExtendedStyle(dwStyle);
      

      please help if any one has any idea. i searched on net there are many ways to remove them but no solution how to show them. Thanks

      _ Offline
      _ Offline
      _T No name
      wrote on last edited by
      #2

      hey guys i got it.. i dint insert enough items thats why it was not coming... Thanks

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups