CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: CToolbar Icons

  1. #1
    Join Date
    Apr 1999
    Location
    Indianapolis, IN
    Posts
    11

    CToolbar Icons

    How would I load an alternate bmp to a toolbar at run time? I need to be able to load the images off of the disk? It seems like a simple task but I've been banging my head for hours and I can't find a way to do it.

    Thanks
    Scott



  2. #2
    Join Date
    Feb 2002
    Posts
    47

    Re: CToolbar Icons

    You can use the GetToolBarCtrl-Method of the m_wndToolBar-Member of CMainFrm to get the CToolBarCtrl-Object from your Toolbar. Use the GetImageList-Method of this Object to customize the Icons. See also the DeleteButton- and InsertButton-Methods of CTooBarCtrl...


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