![]()  | 
 
CXTPToolBar in dialogs | 
 
    Post Reply  
   | 
  
| Author | |
   
   andy_t  
   
   Newbie  
   Joined: 19 October 2004 Location: Norway Status: Offline Points: 13  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: CXTPToolBar in dialogsPosted: 02 March 2005 at 10:09am  | 
 
| 
   
    Hi all, Is anyone using CXTPToolBars in dialogs or this not recommended? The problem is that the toolbar is not receiving ui update messages. I can get around this by calling SendMessageToDescendants(WM_IDLEUPDATECMDUI); in OnTimer(), but is there a better place to call this or another way of doing it all together? Should I be using MFC toolbars instead? thanks for any help,  | 
 |
![]()  | 
 |
   
   Agent 007  
   
   Newbie  
   Joined: 08 April 2005 Status: Offline Points: 4  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 08 April 2005 at 10:34am | 
 
| 
   
    Add the following member function declaration to the dialog class  afx_msg LRESULT OnKickIdle(WPARAM wp, LPARAM lCount); Add the following member function definition to the dialog class definition file. LRESULT CDialogSampleDlg::OnKickIdle(WPARAM, LPARAM) Add the following macro to the message map section in the dialog class definition file. ON_MESSAGE(WM_KICKIDLE, OnKickIdle) Also, see the sample: Command Bars, DialogSample  | 
 |
![]()  | 
 |
    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  |