Q-1 Discuss in detail the use of Dialog Box, Combo Box and check box control in VC++.Ans
is nothing but a special type of window designed to obtain input from the user. There aretwo types of dialog boxes:-Modal & Modeless.
Creating Dialog Boxes Application:-
Open the application.2.
rt, Resource from developers studio’s menu bar.3.
Resource type dialog box appears.4.
Choose dialog & double click it then press ok button.5.
Now, Default type of dialog box appears on the project.6.
By choosing view, properties.7.
Change the caption to dialog example. The ID for this dialog box has been choosen by theapplication wizard is IDD_DIALOG 1.8.
By default two command button OK, CANCEL. You may remove these controls by selecting it &pressed delete button through keyboard.
It is a combination of edit box & list box. This controlenables user to select from the list .There are three types of combo boxes are:- simple, Drop down, Drop down list.
Using of combo box :-
follow these steps1.
From the control palette, select combo box control and place it on theDialog window. Its default ID as
. However you can change it through the propertydialog box.
Open the class wizard select member variables tab to add variable
Open the file view & select
. Add the following code shown below:-