MFC dialog + ResizableLib + splitter
-
I have a dialog inherited from CResizableDialog, and some controls in it. I would like the user to be able to resize controls within dialog, like with some splitters. There are 4 major areas, 3 on top window half, and one on bottom. I thought that some splitter class from CP would help me here, but the code is either immature, or requires creation of panes. I don't have panes, just controls, and don't know how to work with panes. What is the recommended class, or best common practice, and where can I find some sample code?
-
I have a dialog inherited from CResizableDialog, and some controls in it. I would like the user to be able to resize controls within dialog, like with some splitters. There are 4 major areas, 3 on top window half, and one on bottom. I thought that some splitter class from CP would help me here, but the code is either immature, or requires creation of panes. I don't have panes, just controls, and don't know how to work with panes. What is the recommended class, or best common practice, and where can I find some sample code?
You should not be using a
CDialog
for this. MFC has aCSplitterWnd
that will handle multiple panes and you can add any otherCWnd
type within each pane.Unrequited desire is character building. OriginalGriff
-
I have a dialog inherited from CResizableDialog, and some controls in it. I would like the user to be able to resize controls within dialog, like with some splitters. There are 4 major areas, 3 on top window half, and one on bottom. I thought that some splitter class from CP would help me here, but the code is either immature, or requires creation of panes. I don't have panes, just controls, and don't know how to work with panes. What is the recommended class, or best common practice, and where can I find some sample code?
Mihajlo Cvetanovic wrote:
I would like the user to be able to resize controls within dialog
That's a tall order.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun