![]()  | 
 
how to get F1 help working on docking pane control | 
 
    Post Reply  
   | 
  
| Author | |
   
   klausd  
   
   Newbie  
   Joined: 22 December 2006 Status: Offline Points: 7  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: how to get F1 help working on docking pane controlPosted: 17 September 2007 at 4:33am  | 
 
| 
   
    
   I would like to support 'F1 help' for the controls of a
 
   
  docking pane (like title bar, close box or pane tabs). While context help is supported via CXTPDockingPaneTabbedContainer::OnHelpHitTest, F1 help seems not to be supported per se. What would be the most appropriate way to implement it?  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 17 September 2007 at 5:28am | 
 
| 
   
    
   Hi,
 
   
  You can create class derived from CXTPDockingPaneTabbedContainer catch OnHelpHitTest and return your values for close and caption. Now override CDockingPaneManager and add 
CXTPDockingPaneBase* CDockingPaneManager::OnCreatePane(XTPDockingPaneType type, CXTPDockingPaneLayout* pLayout) 
{ if (type == xtpPaneTypeTabbedContainer) return new CMyDockingPaneTabbedContainer(pLayout);  return CXTPDockingPaneManager::OnCreatePane(type, pLayout); 
} 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   klausd  
   
   Newbie  
   Joined: 22 December 2006 Status: Offline Points: 7  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 17 September 2007 at 5:50am | 
 
| 
   
    
   Oleg,
 
   
  AFAIK OnHelpHitTest is called only for context help (via CFrameWnd::OnContextHelp), it is not involved in F1 help. The command bar classes seem to implement this by remembering the selected control and then hooking the ID_HELP command message of the frame. I see no similar mechanism in the docking pane classes, though. Regards Klaus  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 18 September 2007 at 2:23am | 
 
| 
   
    
   Hello,
 
   
  Yes it will work for context help. if user press F1 instead of context help, he is waiting help for current docking pane window. 
    | 
 |
| 
   
     
     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  |