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

Thread: Refresh Toolbar

  1. #1
    Join Date
    May 1999
    Location
    Singapore
    Posts
    33

    Refresh Toolbar

    Hi,

    I would like to know how I can refresh my toolbar when I change my resource using a resource DLL. I'm using a hot/cold toolbar style with text below the icons. The text is supposed to be changed when I change to another resource.

    Thanks!!

    Steve


  2. #2
    Join Date
    Apr 1999
    Posts
    27

    Re: Refresh Toolbar


    Create the toolbar using CToolBar, and then call CToolBar::GetToolBarCtrl to get access to the CToolBarCtrl member functions.


    Create the toolbar using CToolBarCtrl's constructor.
    To use bitmap images for buttons, add the button bitmaps to the toolbar by calling AddBitmap.


    To use images displayed from an image list for buttons, specify the image list by calling SetImageList, SetHotImageList, or SetDisabledImageList.


    To use string labels for buttons, add the strings to the toolbar by calling AddString and/or AddStrings.
    leolin


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