Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have to create CToolBar control in mfc application. How can i create it ?
I want step by step information of creating it.

What I have tried:

I searched it on google but i did not get step by step information.
Posted
Updated 12-Nov-20 1:22am

1 solution

What did you Google for? See CToolBar Class | Microsoft Docs[^].
 
Share this answer
 
Comments
Member 13298308 12-Nov-20 7:26am    
i type text "how to create CTooBar in mfc app".
Richard MacCutchan 12-Nov-20 7:44am    
Follow the link I gave you, all the details are there.
Member 13298308 12-Nov-20 9:02am    
1. Create a toolbar resource.

2. Construct the CToolBar object.

3. Call the Create (or CreateEx) function to create the Windows toolbar and attach it to the CToolBar object.

4. Call LoadToolBar to load the toolbar resource.

i do not understand these lines
please give me code for these lines.

1. How to create a toolbar resource.

2. How to construct the CToolBar object.

3. How to call the Create (or CreateEx) function to create the Windows toolbar and attach it to the CToolBar object.

4. How to call LoadToolBar to load the toolbar resource.
Richard MacCutchan 12-Nov-20 9:07am    
The steps outlined are as clear as can be, you need to do what each step tells you, and follow the documentation. All the information is available on the MSDN website. You create a Toolbar resource in the resource editor as described at Toolbar Editor (C++) | Microsoft Docs[^].
Member 13298308 12-Nov-20 7:30am    
or CToolBar mfc example.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900