Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » 2.85: CExTreeCtrl and WM_LBUTTONUP Collapse All
Subject Author Date
Joachim Meißner Nov 1, 2009 - 11:40 AM

In CExtTreeCtrl WM_LBUTTONUP is not catched correctly.


If I overwrite OnTreeMouseClick and supress the handling of WM_LBUTTONDOWN in my function like this:


    if (nMouseButton==VK_LBUTTON && nClick==0) {

       return true;

    }


then OnTreeMouseClick with nMouseButton==VK_LBUTTON && nClick==1 is called everytime, I release the LBUTTON. Otherwise, OnTreeMouseClick is called only after a double click.


In CExtTreeCtrl::OnTreeMouseClick while handling WM_LBUTTONDOWN, SendMessage( WM_CANCELMODE ) is called.


I suppose, this is the reason, why WM_LBUTTONUP ist not catched.


Please provide a fix.


 

Technical Support Nov 2, 2009 - 9:08 AM

Please provide us with more details about your task. Windows sends a WM_LBUTTON*** message to each window independently of the algorithms implemented in message handler methods. If your code eats up the WM_LBUTTONDOWN message, then this does not mean you should not receive the WM_LBUTTONUP message.

Joachim Meißner Nov 18, 2009 - 4:21 AM

The Problem seems to be solved in 2.87.