tags:

views:

95

answers:

1

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.

A: 

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:

HKLM\Software\companyname\applicationname

There it has a key for each control bar.

fretje