To create a Full Screen Dialog in MFC (Microsoft Foundation Class) application is a quite simple process. Here I've given a step-by-step procedure to create the Full screen dialog using MFC application.
- Open the Visual Studio application
- Select the New -> Project option
- New Project dialog will open. Select the MFC option in the left side pane and select the MFC Application in right side pane.
- Give the name of the project (for example FullScreenApp) and press OK. It'll open the MFC Application Wizard.
- Select the Application type as Dialog based.
- Select the User Interface futures option in the left side pane.
- Remove the tick mark in System Menu combobox present in the right side pane.
- Press the Finish button. MFC Application Wizard will create the dialog based application for you and Visual studio editor will automatically open the dialog.
- Open the Property sheet of the dialog.
- Set the Border property to None and Style to Popup.
- Open the dialog class (in this case FullScreenAppDlg.cpp) presented in the solution explorer.
- Go to the OnInitDialog() member function and the insert the below line to bottom of the function.
ShowWindow(SW_MAXIMIZE) ;
After completing all the steps, run the project. It will give you a very good Full screen Dialog application.
1 comments:
Thank buddy, this really helps!