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. WM_LBUTTONDOWN not working with CListCtrl class!!

WM_LBUTTONDOWN not working with CListCtrl class!!

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiohelpquestion
22 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.
  • S SanjaySMK

    CListCtrl derived objects come from the parent class, i.e. the dialog class, I call one member function of CListCtrl-derived class, SubClassMyList, in which I am calling SubclassWindow(HWND) function, after which mouse events don't work on this derived class. Sorry, I was away for some days, hence couldn't update you quickly.

    Software Developer Sanjay Khapre

    M Offline
    M Offline
    Mark Salsbery
    wrote on last edited by
    #21

    SanjaySMK wrote:

    in which I am calling SubclassWindow(HWND) function

    I don't know how many times I've asked why... All my MFC controls for the past decade have got mouse messages just fine without calling subclassWindow...

    Mark Salsbery Microsoft MVP - Visual C++ :java:

    S 1 Reply Last reply
    0
    • M Mark Salsbery

      SanjaySMK wrote:

      in which I am calling SubclassWindow(HWND) function

      I don't know how many times I've asked why... All my MFC controls for the past decade have got mouse messages just fine without calling subclassWindow...

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      S Offline
      S Offline
      SanjaySMK
      wrote on last edited by
      #22

      Dear Mark, First of all, I am very sorry if I have tested your patience, although unknowingly and unintentionally. I have some big code of my project, which was running fine in Visual C++ 6.0(in which it was first written), but which I now needed to convert to Visual C++ 2005. After everything I have explained till date, since the functionality(mouse events) after conversion is not running in VC 2005, I created my own MFC application in VC 2005, in which, like the project code, I tried using CWnd's SubclassWindow(HWND). Since this functionality was running in VC 6.0, I need to keep and also make it run in VC 2005. Hence the inclusion of SubclassWindow also in my code(the sample application which I am trying these things in). I hope I am very much clear this time. Could you please help?

      Software Developer Sanjay Khapre

      modified on Friday, January 16, 2009 12:45 AM

      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