Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - prevent  displaying hidden pane when mousemove
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

prevent displaying hidden pane when mousemove

 Post Reply Post Reply
Author
Message
maha_saad View Drop Down
Newbie
Newbie


Joined: 02 November 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote maha_saad Quote  Post ReplyReply Direct Link To This Post Topic: prevent displaying hidden pane when mousemove
    Posted: 02 November 2008 at 5:07am
I want to ask how can I prevent  displaying the hidden pane when mouse move on its tab.
I want it to be only shown when mouse clicked on it.
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: 03 November 2008 at 1:55am
Hello,
 
Sorry, there is no option. You can change CXTPDockingPaneAutoHidePanel::OnMouseHover method and rebuild toolkit.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
maha_saad View Drop Down
Newbie
Newbie


Joined: 02 November 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote maha_saad Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2008 at 3:12am
Thank you for responding, but I found solution to my problem I wrote it in case any one has the same problem. 

LRESULT MyAppFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)

{

if (wParam == XTP_DPN_ACTION)
{

XTP_DOCKINGPANE_ACTION* pAction = (XTP_DOCKINGPANE_ACTION*)lParam;

if (pAction->action==xtpPaneActionExpanding&&!(GetAsyncKeyState(VK_LBUTTON)))
           pAction->bCancel=true;

return true;

}
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: 07 November 2008 at 7:11am
Shouldn't it be GetKeyState()? Don't you want to get the state when the message was processed?
 
Just a guess.
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.516 seconds.