Print Page | Close Window

OnNcLButtonDown - Tabbed Toolbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7722
Printed Date: 03 March 2025 at 11:52am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OnNcLButtonDown - Tabbed Toolbar
Posted By: venkyhyd
Subject: OnNcLButtonDown - Tabbed Toolbar
Date Posted: 03 August 2007 at 2:53am
Hi
 
How do handle OnNcLButtonDown on Tabbed Toolbar?
-thanks



Replies:
Posted By: venkyhyd
Date 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


Posted By: venkyhyd
Date Posted: 06 August 2007 at 1:31am
Any Comments on this...


Posted By: Oleg
Date 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


Posted By: venkyhyd
Date 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


Posted By: Oleg
Date Posted: 07 August 2007 at 12:31am
Hi,
 
So why OnNCLButtonDown ? Catch OnLButtonDown.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: venkyhyd
Date 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


Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net