Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Dynamically creating CToolBar

Dynamically creating CToolBar

Scheduled Pinned Locked Moved C / C++ / MFC
helplearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Benjamin Bruno
    wrote on last edited by
    #1

    hi I want to create CtoolBar dynamically, without the resource( RC file) entries. Load image to Toolbar and set size based on certain condition. RC file entries makes it predefined. your help is much appreciated.

    L 1 Reply Last reply
    0
    • B Benjamin Bruno

      hi I want to create CtoolBar dynamically, without the resource( RC file) entries. Load image to Toolbar and set size based on certain condition. RC file entries makes it predefined. your help is much appreciated.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Then you need to write the code to create the buttons, allocate their ID values and images, and add them to the CToolBar object. See CToolBar Class | Microsoft Docs[^], and Toolbar - Win32 apps | Microsoft Docs[^].

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups