Click here to Skip to main content
15,908,020 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I would like to start with a MFC based project. It should be able to load one Form after the other from the menu list. One form should be viewed by the time and overwritten by choosing another one.


What I have tried:

Started with Visual Studio SDI MFC project.
Updated 30-Oct-23 11:59am
merano99 29-Oct-23 19:42pm    
What exactly is the question?
Richard MacCutchan 30-Oct-23 5:06am    
You would be better moving to .NET and C# which is designed around the use of forms, and much easier than MFC.

MFC was released with Microsoft C/C++ 7.0 over 30 years ago. As such, there is an abundance of books, online documentation, and tutorials out there, including on this website. As you note, MFC supports three "kinds" of Windows applications: modal, SDI, and MDI. An example of a modal SDI application is Windows Notepad, included in every version of Windows.

Some resources you might look at to start with MFC are:
Share this answer
CPallini 30-Oct-23 3:05am    
If you just starting with MFC then use the dialog based application it allows you SDI it's more complex template for the working with the your files formats and documents - it prepare automatically functionality for that. In dialog based applications you can setting up controls on your form add menu and toolbar simple handle buttons pressing and so on. In SDI you control content of your form manually and mostly dynamically, which is not good for starting with MFC.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900