Home > Software engineering >  How to set up the MFC project CDockablePane cannot change size, but can move also can't change
How to set up the MFC project CDockablePane cannot change size, but can move also can't change

Time:10-06

This problem bothering me for a few days, I can realize the state of the dock, CDockablePane Pane of the definition of size can't change, but when I was in the Oncreate () to add AFX_CBRS_FLOAT parameters, make this dock Pane can be mobile, drag the CDockablePane move later known as the floating (MSDN) at this time, the size of the Pane can change again, how can I make the CDockablePane will not be able to change the size??????? Do you have any friends know?? Thank you,
I checked several methods on the net, but there are problems
A: : overloading CDockablePane IsResizable () method (), the return value to false.
Virtual BOOL IsResizable const () {return FALSE. }
This method can produce interrupt, interpreted as on MSDN: By default, dockable panes are the resizable. To prevent resizing, override this metho d in a derived class and return FALSE. Note that a FALSE value leads To a failed ASSERT in CPane: : DockPane. Use CDockingManager: : AddPane home To dock a pane within a parent frame. ,
Didn't understand how to use CDockingManager: : AddPane,
Add: 2: in the OnPaint () function GetDefaultPaneDivider () - & gt; The EnableWindow (FALSE);
Mobile Pane will produce after interruption,
Hope the friend that have the ability to help solve, thank you very much,

CodePudding user response:

Have a great god answer??????? Don't sink????

CodePudding user response:

Love

CodePudding user response:

Love is the building Lord, on the study of the MFC

CodePudding user response:

. Codejock Xtreme. Toolkit. Pro. V15.3.1. Full. Source. Retail. Incl. The Keymaker - ZWT. Rar?

CodePudding user response:

I also love
  • Related