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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to make a ClistCtrl has a gridline look?

How to make a ClistCtrl has a gridline look?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 3 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.
  • L Offline
    L Offline
    LiYS
    wrote on last edited by
    #1

    I'm sure it involve LVS_EX_GRIDLINES attribute. but ClistCtrl::SetExtendedStyle(LVS_EX_GRIDLINES | LVS_REPORT); didn't work!:)

    M 1 Reply Last reply
    0
    • L LiYS

      I'm sure it involve LVS_EX_GRIDLINES attribute. but ClistCtrl::SetExtendedStyle(LVS_EX_GRIDLINES | LVS_REPORT); didn't work!:)

      M Offline
      M Offline
      mirex
      wrote on last edited by
      #2

      maybe LVS_REPORT has to be set through ClistCtrl::SetStyle( LVS_REPORT ); and then try setting ClistCtrl::SetExtendedStyle( GetExtendedStyle() | LVS_EX_GRIDLINES ); i think that LVS_EX_... means Extended style, and can be set only through SetExtendedStyle()

      L 1 Reply Last reply
      0
      • M mirex

        maybe LVS_REPORT has to be set through ClistCtrl::SetStyle( LVS_REPORT ); and then try setting ClistCtrl::SetExtendedStyle( GetExtendedStyle() | LVS_EX_GRIDLINES ); i think that LVS_EX_... means Extended style, and can be set only through SetExtendedStyle()

        L Offline
        L Offline
        LeeeNN
        wrote on last edited by
        #3

        Hi, What's wrong with my VC++ 5.0 Compiler? It complains, C:\VC\excel\excelDlg.cpp(130) : error C2039: 'SetStyle' : is not a member of 'CListCtrl' C:\VC\excel\excelDlg.cpp(131) : error C2039: 'SetExtendedStyle' : is not a member of 'CListCtrl' C:\VC\excel\excelDlg.cpp(131) : error C2039: 'GetExtendedStyle' : is not a member of 'CListCtrl' Or You guys are wrong.;P

        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