Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - no double click message sent
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

no double click message sent

 Post Reply Post Reply
Author
Message
Osiris View Drop Down
Groupie
Groupie
Avatar

Joined: 18 June 2007
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Osiris Quote  Post ReplyReply Direct Link To This Post Topic: no double click message sent
    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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Osiris View Drop Down
Groupie
Groupie
Avatar

Joined: 18 June 2007
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Osiris Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2008 at 6:00am
Hi,
Do you have this ON_NOTIFY     in parent window ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Osiris View Drop Down
Groupie
Groupie
Avatar

Joined: 18 June 2007
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Osiris Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2008 at 4:24am
// In OnDockingPaneNotify:
m_wndReport.SetOwner(this);
PokerMemento - http://www.pokermemento.com/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.