Page 212 - DCAP408_WEB_PROGRAMMING
P. 212

Windows Programming




                    Notes          12.7 Keywords

                                   CreateDialog: CreateDialog loads the template, creates the dialog box, and optionally exhibits
                                   it.

                                   Modal Dialog Boxes: Modal dialog boxes (also called as Application Modal dialog box)  insist
                                   you to respond to them before continuing in the same application.
                                   Modeless Dialog Boxes: Modeless dialog boxes are just like any other form in your application
                                   and loose their focus as soon as you click some other Window outside the application.
                                   System Modal Dialog Box: A System Modal dialog box restricts the user from continuing work
                                   on the system unless it gets unloaded.

                                   12.8 Review Questions

                                   1.  Explain the process of exchanging data with a dialogue box using Global Variable Method
                                       and Pointer Method.
                                   2.  Illustrate various DDX_OC functions used to exchange data.
                                   3.  How DDX is used to create a new dialog box class? Explicate.
                                   4.  What are the problems that appear while using global variables? Discuss.
                                   5.  Why the convenience of global variables sometimes outweighs the potential problems?

                                   6.  Illustrate the function of Application Modal Dialog Box.
                                   7.  What is system modal dialog box? Also write the syntax used in system modal dialog box.
                                   8.  Make distinction between modal and modal  dialog boxes.  Explain with  appropriate
                                       examples.
                                   9.  Elucidate how to create a Modeless Dialog Box a Modeless Dialog Box.
                                   10.  What are the memory allocation issues related with global variables? Illustrate.

                                   Answers: Self  Assessment

                                   1.  DDX_OCBoolRO                      2.   DDX_OCTextRO

                                   3.  DDX_OCShort                       4.   pointer
                                   5.  global                            6.   rules
                                   7.  synchronization                   8.   instances
                                   9.  input                             10.  Application Modal dialog box

                                   11.  Show                             12.  Modeless
                                   13.  System Modal                     14.  CreateDialog
                                   15.  Cancel













          206                               LOVELY PROFESSIONAL UNIVERSITY
   207   208   209   210   211   212   213   214   215   216   217