Print Page | Close Window

Creating Toolbars using an HWND

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=3526
Printed Date: 04 March 2025 at 5:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Creating Toolbars using an HWND
Posted By: Keith
Subject: Creating Toolbars using an HWND
Date Posted: 17 January 2006 at 1:49pm

I have been experimenting grabbing windows started by other applications and changing them so they exist inside a codejock panel in another application. However, I am now trying to attempt to grab another applications' toolbar and display it in another application written using the codejock library.

I managed to grab a toolbar and display it in a codejock panel - which works well -but what i really would like to do is display the grabbed toolbar as a command bar. The only information I have is an HWND. Is there any way of creating a Codejock toolbar and attach it to the HWND. For example to attach a grabbed toolbar into a panel I had to do the following:

CWnd* pWnd = new CWnd();

pWnd->Attach(hGrabbedToolbar);

pPanel->SetParent(pWnd);

Many thanks

Keith Smile




Replies:
Posted By: Oleg
Date Posted: 17 January 2006 at 2:08pm

Hi,

Don't think it is possible. Codejock Toolbar is fully written from CWnd it doen't use CToolBar or standard "TOOLBAR" class. It is not compatible with standard windows toolbars.



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


Posted By: Keith
Date Posted: 17 January 2006 at 3:02pm

Oleg,

Is there a way I could used the CodeJock dialogbar and attach the HWND of the toolbar to it. Sometime ago you published a tabbed toolbar which mixed a property sheet with a dialogbar. Could I use this technique.

many thanks

Keith Smile



Posted By: Oleg
Date Posted: 18 January 2006 at 1:30am

Hello,

I don't think it is possible too, but you can try :)



-------------
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