Is there an easy way to exclude a control bar from the dock state saved by an MFC frame window?
We have a dock bar whose visibility is controlled by some other state and the loading of dock state is interfering with the desired behavior.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will have do dock/undock the specific bar after your call to “LoadBarState” using DockControlBar or FloatControlBar (depending on the other state).
Another (more kind of hacky) option is to remove the specific registry key with the settings after your call to “SaveBarState”. The dock state is saved here:
There it has a key for each control bar.