how to save the toolbar state to a .ini file?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
-
Hi: In MFC, I could save the toolbar's state to registry by calling function CToolBarCtrl::SaveState, but how to save the toolbar's state to an ini file? Sometimes,I don't want to use registry , Could you give me some idea? Thanks very much! Thanks Benben
You can get the state of each button and save in a vector or list or array and serialize it. For Example, Use GetButtonCount(), to get the total number of buttons on the toolbar and then use GetState() for getting the state of each button and store in a vector and serialize it. Don't forget to rate the replies if it helps you.