Dialogs are one of the mandatory features of Windows programming. If we are creating a complete application, there will be a stage when we will require dialogs in some form. Dialogs could be in the form of edit boxes, radio buttons, check boxes, and so on. Dialogs come in two forms: modal and modeless. Modal dialog boxes require an immediate response, whereas modeless dialog boxes are more like floating boxes and do not require an immediate response.
To work through this recipe, you will need a machine running Windows. You also need to have a working copy of Visual Studio installed on your Windows machine. No other prerequisites are required.
In this recipe, we will find out how easy it is to create dialog boxes.
Open Visual Studio.
Create a new C++ project.
Select a Win32 windows application.
Create a new resource file.
Select dialog as the type of resource.
Edit the box in whatever way you desire.
A corresponding
resource.h
file will be created...