I have to create an application that have looks like this :
Image link : http://aycu36.webshots.com/image/44475/2002032283662365553_fs.jpg
This dummy application has been created in C# (Framework 1.1) but for a
performance reason we need to create it with MFC. First of all we have the
main windows that contains two columns. The first one regroup all menu
button. The other one contains the information about the selected section
(choose by selecting a button on left menu) .
Here is my problem I want to know how to create an interface like this but I
want my code to be seperated for each section. Each section should have it
own cpp/h file and dialoge resource. So I don't want to stack multiple panel
on each other and toggle visibility because it is a nightmare to manage in
design mode and it hard to maintains as the application grow up.
Recently I start a forum thread to know what is the equivalent of a
"UserControl" in C# but for Delphi. I got the the TFrames component as answer.
Now, I would like to know what is the equivalent for MFC ? Someone talk me
about the CFormView and some other propose me to use the CPropertyPage. But
as far I know, a property page cannot help me to dispose my content like this
? And a SDI interface with CFormView cannot host more then one sub dialog at
time ?
Thanks for your help
Best regards
Each right side section should be a modeless dialog, with its own class
derived from CDialog, ccp/h and resource. The titlebar style for each
dialog should be turned off. Initially you would create and postion all the
dialogs on the parent window (with Create() and MoveWindow()), but make only
one of them visible. Also set style WS_EX_CONTROLPARENT for the parent
window to help the tab key navigation move between the child windows.
When a left side button is clicked call ShowWindow() to make the desired
child dialog visible and all others invisible.
--
Scott McPhillips [VC++ MVP]
Thanks Scott I will try this :)
Best regards,