Print Page | Close Window

no double click message sent

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=12856
Printed Date: 29 May 2024 at 3:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: no double click message sent
Posted By: Osiris
Subject: no double click message sent
Date Posted: 04 December 2008 at 5:26am
Hi there,

I have a docking pane and a CWnd derived class (resp. object) attached to the pane. Inside the CWnd there is a CXTListCtrl member as child of the CWnd derived class. I'm not able to catch the NM_DBLCLK notification message of the list control in my CWnd. I persume the NM_DBLCLK notification is not sent by the list control. But I've got no idea why this is so.

Can it be because the CWnd is attached to the docking pane? Do I have to do something else to get the message?

Thanks in advance
Stefan



Replies:
Posted By: mgampi
Date Posted: 04 December 2008 at 3:36pm
Hi;
could you post the code for how you created the CXTListCtrl and how you try to catch the notificaton message.
In my case it works as expected.


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: Osiris
Date Posted: 05 December 2008 at 9:46am
I create the list in the OnCreate method of the CWnd derived pane class as follows:

if( !m_lstStacks.Create( LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_REPORT | WS_VISIBLE | WS_TABSTOP, CXTPEmptyRect(), this, ID_FILEBROWSER_LIST ) )
{
    return -1;
}
DWORD dwExStyles = m_lstStacks.GetExtendedStyle();
dwExStyles |= LVS_EX_GRIDLINES;
dwExStyles |= LVS_EX_FULLROWSELECT;
m_lstStacks.SetExtendedStyle( dwExStyles );

the message map entry is:

ON_NOTIFY           (NM_DBLCLK, ID_FILEBROWSER_LIST,    OnDblClick)

everything as described...

We also encountered that the double click does not work in file dialogs opened within the application. We presume that it might have the same reason the list control sends no double click message...


Posted By: mgampi
Date Posted: 05 December 2008 at 10:55am
Hi;
Check whether any window of your application handles WM_NOTIFY messages in PreTranslateMsg() and returns TRUE on NM_DBLCLK.
I also recommend using Spy++ to check where the notification message disappears.


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: Oleg
Date Posted: 08 December 2008 at 6:00am
Hi,
Do you have this ON_NOTIFY     in parent window ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Osiris
Date Posted: 09 December 2008 at 3:45am
Hi Oleg,

yes it's in the CWnd derived window that is the parent of the list control.



Posted By: Oleg
Date Posted: 10 December 2008 at 1:15am

Hi,

Have to work then... Maybe because you don't have WS_CHILD style...


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 16 December 2008 at 4:24am
// In OnDockingPaneNotify:
m_wndReport.SetOwner(this);


-------------
PokerMemento - http://www.pokermemento.com/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net