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
S

SanjaySMK

@SanjaySMK
About
Posts
43
Topics
29
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WM_LBUTTONDOWN not working with CListCtrl class!!
    S SanjaySMK

    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

    C / C++ / MFC c++ visual-studio help question

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

    C / C++ / MFC c++ visual-studio help question

  • WM_LBUTTONDOWN not working with CListCtrl class!!
    S SanjaySMK

    I have a method in CListCtrl-derived class, from where I am calling CWnd::SubclassWindow, and after calling that, WM_LBUTTONDOWN and WM_LBUTTONDBLCLK do not get called at all.

    Software Developer Sanjay Khapre

    C / C++ / MFC c++ visual-studio help question

  • WM_LBUTTONDOWN not working with CListCtrl class!!
    S SanjaySMK

    I got the answer of why SubclassWindow was failing, it was because I had DDX_Control entries inside DoDataExchange function, which shouldn't be there, otherwise the parameter to SubclassWindow will always be attached to the parent dialog box, which doesn't fit its criterion. But now after that, the messages WM_LBUTTONDOWN and WM_LBUTTONDBLCLK should run, which are not running. That means my question is, after calling CWnd::SubclassWindow function, why these two messages do not respond at all?Please suggest some remedy.

    Software Developer Sanjay Khapre

    modified on Thursday, January 8, 2009 9:34 AM

    C / C++ / MFC c++ visual-studio help question

  • WM_LBUTTONDOWN not working with CListCtrl class!!
    S SanjaySMK

    In which case CWnd::SubclassWindow(HWND DocumentList) fails? Even though, the variable HWND DocumentList which I am using as its parameter is locally declared and initialized where I am calling SubclassWindow, still SubclassWindow is failing(Debug Assertion Failure!). What is its remedy? Could u please suggest? DocumentList parameter is declared and initialized some lines before calling SubclassWindow, as following: HWND DocumentList = CreateDocumentList(parenthandle, rect.left, rect.top, rect.Width(), rect.Height(), someflag) ; Line 1 Line 2 Line 3 SubclassWindow(DocumentList) ; // which fails here, why?

    Software Developer Sanjay Khapre

    modified on Thursday, January 8, 2009 5:24 AM

    C / C++ / MFC c++ visual-studio help question

  • why SubclassWindow fails? [modified]
    S SanjaySMK

    In which case CWnd::SubclassWindow(HWND DocumentList) fails, I have locally declared and initialized DocumentList which is used as the the parameter?

    Software Developer Sanjay Khapre

    modified on Wednesday, January 7, 2009 10:03 AM

    C / C++ / MFC question

  • WM_LBUTTONDOWN not working with CListCtrl class!!
    S SanjaySMK

    Sorry if I haven't answered your last question. The thing is, that subclassing is used in case of CListCtrl-derived class, the reason why I don't see its varible entries inside DoDataExchange, hence the problem. That means the requirement is that of making LBUTTONDOWN and LBUTTONDBLCLK work with subclassed windows of CListCtrl-derived class. Can you help me out with this? Thanks in advance.

    Software Developer Sanjay Khapre

    C / C++ / MFC c++ visual-studio help question

  • WM_LBUTTONDOWN not working with CListCtrl class!!
    S SanjaySMK

    I am subclassing both CListCtrl-derived class and the Combo box objects.

    Software Developer Sanjay Khapre

    C / C++ / MFC c++ visual-studio help question

  • WM_LBUTTONDOWN not working with CListCtrl class!!
    S SanjaySMK

    I called a message box from within the constructor of CListCtrl-derived class for which I declared two objects in its parent dialog class, and on both of their construction, I get this message box twice. That's how I ensured.

    Software Developer Sanjay Khapre

    C / C++ / MFC c++ visual-studio help question

  • WM_LBUTTONDOWN not working with CListCtrl class!!
    S SanjaySMK

    Yes Mark, Thanks a ton for the code snippet. I have the same code snippet, and as you asked, the required no. of CListCtrl-derived class objects are also getting created successfully, but still the events, WM_LBUTTONDOWN and WM_LBUTTONDBLCLK for those objects are not getting invoked in Visual C++ 2005! I am puzzled, why is this happening! Warm regards,

    Software Developer Sanjay Khapre

    C / C++ / MFC c++ visual-studio help question

  • WM_LBUTTONDOWN not working with CListCtrl class!!
    S SanjaySMK

    I am handling WM_LBUTTONDOWN message in a CListCtrl-derived class, but not getting why it's not working. When this project was in Visual C++ 6.0, it was running fine, but now that I have converted this to Visual C++ 2005, it is failing to run, although it compiles fine, and creates the DLL.

    Software Developer Sanjay Khapre

    C / C++ / MFC c++ visual-studio help question

  • WM_LBUTTONDOWN not working with CListCtrl class!!
    S SanjaySMK

    Hello, I have some code which has a dialog box and a list control placed on it, and I handled the WM_LBUTTONDOWN message on it, which perfectly executed when the code was compiled in Visual C++ 6.0. But the same code, when ported to VS 2005, does not respond to this message at all, although the code compiles and links fine in VS 2005. I tried to handle the notification message, NM_CLICK also, on the List Control which is on the dialog box, but to no avail. What must be the problem? Please suggest the remedy. Thanks,

    Software Developer Sanjay Khapre

    C / C++ / MFC c++ visual-studio help question

  • Any problems with ON_MESSAGE in Visual C++ 8?
    S SanjaySMK

    Hi, either by using enum or by # define e.g. enum { WM_DOCLISTDCLICKED = WM_APP+1, WM_DOCLISTCLICKED = WM_APP+2 }; OR # define WM_DOCLISTDCLICKED WM_APP+1 # define WM_DOCLISTCLICKED WM_APP+2

    Software Developer Sanjay Khapre

    modified on Friday, January 2, 2009 7:42 AM

    C / C++ / MFC c++ visual-studio business question

  • Any problems with ON_MESSAGE in Visual C++ 8?
    S SanjaySMK

    Hello, Previously my code was in Visual C++ 6.0, where ON_MESSAGE was running fine, with me religiously fulfilling all its requirements, i.e. return type was LRESULT, parameters to my function were WPARAM and LPARAM. But the same code, when I converted to VS 2005, the program only compiles and the DLL gets created, but ON_MESSAGE macro seem to be failing? My user defined message does not get called at all. Is a change needed in how I write ON_MESSAGE macro? Please suggest the remedy. thanks in advance.

    Software Developer Sanjay Khapre

    C / C++ / MFC c++ visual-studio business question

  • How to enter CLSID in registry?
    S SanjaySMK

    Hello, Even after making all the possible changes in the InstallShield, I am still not able to get the CLSID in the registry while installing a software. What changes do I have to make in the InstallShield to get it done or how to enter CLSID in the registry? thanks in advance.

    Software Developer Sanjay Khapre

    COM windows-admin tutorial question

  • Set in Visual Studio 2005!
    S SanjaySMK

    Hello, How to use the STL set in C++ in Visual Studio 2005? thanks and regards,

    Software Developer Sanjay Khapre

    ATL / WTL / STL c++ csharp visual-studio tutorial question

  • error C2440 in Visual Studio 2005
    S SanjaySMK

    Hi, I have some code in Visual C++, which I had earlier compiled using Visual Studio 6.0, and it compiled and linked fine. But the same code which I converted to VS 2005, is giving me this error 2440, as follows: error C2440: 'specialization' : cannot convert from 'BOOL (__stdcall *)(LPCSTR,UINT_PTR)' to 'BOOL (__cdecl *const )(const char *,UINT)' I think this is the error regarding the calling convention. Could somebody resolve this problem for me? Thanks in advance. Sanjay Khapre Software Developer

    C / C++ / MFC c++ visual-studio help csharp question

  • Functions not accessible in the new version of some .lib file
    S SanjaySMK

    I have got a problem, it goes like this: In the older version of some of our .lib file, some functions run fine, but in the newer version of the same .lib file, those are inaccessible, I face the error as ‘Unresolved external symbol’. I am compiling my program in Visual C++ using VS 2005. I opened that concerned .lib file, and found that the concerned functions are there in the file, but those are not accessible to my program. It doesn’t have its DLL. Could you give me its solution, or possible reasons why it’s happening? I will be grateful. Thanks in advance.

    Software Developer Sanjay Khapre

    C / C++ / MFC c++ help visual-studio question announcement

  • Disabling the root node in a tree control in MFC
    S SanjaySMK

    Hi, I wanted to disable the root node in a tree control in MFC, have not been able to do so. Could anybody help? Thanks,

    Software Developer Sanjay Khapre

    C / C++ / MFC c++ data-structures help question

  • Keeping the DLL loaded
    S SanjaySMK

    Hello, Even if no process is referring to a DLL after using it for some time, can we still keep it loaded in memory? How? Software Developer Sanjay K

    C / C++ / MFC performance question
  • Login

  • Don't have an account? Register

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