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. activeX control - using CListCtrl

activeX control - using CListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++comhelp
3 Posts 2 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.
  • B Offline
    B Offline
    BlackDice
    wrote on last edited by
    #1

    I posted a question the other day about using MFC's CListCtrl as a base. Someone told me to draw the control dynamically on my empty control and then relay the function calls to the CListCtrl object. This was a great idea, and exactly what I needed. But I don't know where to put the code to create the listview at. If I put the creation code in My Control's constructor, it compiles fine, but never actually draws it. I put the same code to create it in a dialog-based app and it draws just fine. I even tried a couple of other places in my Control's code, but it crashes on me when I try to actually use it (in VB). Can anyone tell me what's the problem? Thanks in advance :-D bdiamond

    D 1 Reply Last reply
    0
    • B BlackDice

      I posted a question the other day about using MFC's CListCtrl as a base. Someone told me to draw the control dynamically on my empty control and then relay the function calls to the CListCtrl object. This was a great idea, and exactly what I needed. But I don't know where to put the code to create the listview at. If I put the creation code in My Control's constructor, it compiles fine, but never actually draws it. I put the same code to create it in a dialog-based app and it draws just fine. I even tried a couple of other places in my Control's code, but it crashes on me when I try to actually use it (in VB). Can anyone tell me what's the problem? Thanks in advance :-D bdiamond

      D Offline
      D Offline
      Dimitris Vasiliadis
      wrote on last edited by
      #2

      Do you handle WM_PAINT messages? Check if you should forward the message to CListCtrl.


      ...Plug & Pray... X|

      B 1 Reply Last reply
      0
      • D Dimitris Vasiliadis

        Do you handle WM_PAINT messages? Check if you should forward the message to CListCtrl.


        ...Plug & Pray... X|

        B Offline
        B Offline
        BlackDice
        wrote on last edited by
        #3

        thanks If it's broken, I probably did it bdiamond

        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