CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2000
    Location
    USA
    Posts
    179

    handle of button on CToolbar

    Hi all!
    I have CToolBar and 3 buttons on it (ID_BUTTON1, ID_BUTTON2, ID_BUTTO3)
    Could you please tell me how to retrieve handles of these buttons?

    Thx a lot

  2. #2
    Join Date
    Dec 2003
    Location
    Omagh
    Posts
    133

    Idea?

    I am not sure how to get the Handle to the buttons but you can do alot of things if you get the CToolbarCtrl of the Toolbar using

    GetToolBarCtrl();

    If you look in the MSDN for CToolbarCtrl you will find that you can change a number of different features.

    You may be able to get the Handle of the controls by using the GetDlgItem(...) method from the CToolbarCtrl object that you get.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured