Can I close a docker by its dock id?
That is to say, I don't want to close it by press the close button on the title bar,
I may close it by select a menu item or a button on main toolbar.
The way to close a docker is to destroy it. You can use either Destroy or DestroyWindow for this purpose.
In the DockMDITab sample, we could close a docker from CMainFrame as follows:
I use your method, the docker seems to be destroyed ,
but the tab is still there, when I click the tab, the programe will throw exception.
I've submitted an update which adds CDocker::Close to close a docker.
You can download the updated code using Tortoise SVN.
Thanks a lot~
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.