no double click message sent |
Post Reply |
Author | |
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
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 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
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 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
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... |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
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 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Do you have this ON_NOTIFY in parent window ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Osiris
Groupie Joined: 18 June 2007 Status: Offline Points: 29 |
Post Options
Thanks(0)
|
Hi Oleg,
yes it's in the CWnd derived window that is the parent of the list control. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, Have to work then... Maybe because you don't have WS_CHILD style...
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
// In OnDockingPaneNotify:
m_wndReport.SetOwner(this);
|
|
PokerMemento - http://www.pokermemento.com/
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |