![]()  | 
 
Creating Toolbars using an HWND | 
 
    Post Reply  
   | 
  
| Author | |
   
   Keith  
   
   Newbie  
   Joined: 01 December 2005 Location: United Kingdom Status: Offline Points: 8  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Creating Toolbars using an HWNDPosted: 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   | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  | 
 |
![]()  | 
 |
   
   Keith  
   
   Newbie  
   Joined: 01 December 2005 Location: United Kingdom Status: Offline Points: 8  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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   | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  | 
 |
![]()  | 
 |
    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  |