Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - OnNcLButtonDown - Tabbed Toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

OnNcLButtonDown - Tabbed Toolbar

 Post Reply Post Reply
Author
Message
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Topic: OnNcLButtonDown - Tabbed Toolbar
    Posted: 03 August 2007 at 2:53am
Hi
 
How do handle OnNcLButtonDown on Tabbed Toolbar?
-thanks
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 4:26am

When we do LButton Down on the Title bar / caption bar of the Tabbed Toolbar or normal TOolbar it does send OnNCLbuttonDown Message.

 
Can anyone suggest on this.
 
-thanks
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2007 at 1:31am
Any Comments on this...
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: 06 August 2007 at 2:01am
Hello,
Where do you catch this message? What part do you hittest?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2007 at 2:38am

Hello

 
I try catching this message directly in OnNCLButtonDown of CMyTabToolBar derived from CXTPTabToolBar.
 
Hittest gets called whenever the mouse pointer is on the Toolbar.
 
My use case is like, based on the views i created toolbars, like for View1 their is Toolbar (TBar1) and View2 -> TBar2.
 
Now when i open two views View1 and View2 i shld be able to just drag (move as side or dock aside) the irrespective toolbar wrt to views.
 
thanks
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: 07 August 2007 at 12:31am
Hi,
 
So why OnNCLButtonDown ? Catch OnLButtonDown.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
venkyhyd View Drop Down
Groupie
Groupie


Joined: 29 June 2006
Location: India
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote venkyhyd Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2007 at 12:50am
Hi oleg,
 
But how do i identify that i am clicking only on the caption bar, because i should allow the user to just click and drag drop the toolbar if it doesnt correspond to the current active view. And it should restrict any other LButton Down actions on the Toolbar Buttons.
 
thanks
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: 07 August 2007 at 5:41am
Hello,
 
Call
CSize szGripper = GetPaintManager()->DrawCommandBarGripper(NULL, this, FALSE);
In WM_LBUTTONDOWN handler check point.y value. if point.y < szGripper.cy - mouse on gripper.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.063 seconds.