I've inherited a project that presents users a set of tabs, each of which contains a view that displays multiple components. In some of these tabs, we want to prevent users from moving the components displayed in the tab.
We have an object that inherits from CMFCTabCtrl to manage our tabs, which contains a collection of CWnd objects that represent each of our tabs. We also have an object that manages the views associated with each of these tabs, and activates those views when the relevant tab is activated.
The components all share a base object which inherits from CWnd, which defines the various handlers for the messages defined in the inherited message map.
What would be the correct/best way to prevent a user from dragging those components around?
Thanks!