Dynamically creating CToolBar
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
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.
-
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.
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[^].