![]() |
OnNcLButtonDown - Tabbed Toolbar |
Post Reply ![]() |
Author | |
venkyhyd ![]() Groupie ![]() Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() Posted: 03 August 2007 at 2:53am |
Hi
How do handle OnNcLButtonDown on Tabbed Toolbar?
-thanks
|
|
![]() |
|
venkyhyd ![]() Groupie ![]() Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
venkyhyd ![]() Groupie ![]() Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
Any Comments on this...
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Where do you catch this message? What part do you hittest?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
venkyhyd ![]() Groupie ![]() Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
So why OnNCLButtonDown ? Catch OnLButtonDown.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
venkyhyd ![]() Groupie ![]() Joined: 29 June 2006 Location: India Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |