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