Page 211 - DCAP408_WEB_PROGRAMMING
P. 211

Unit 12: Dialog Boxes (II)




                          case IDCANCEL:                                                        Notes
                              DestroyWindow(hwndDlg);
                              hwndGoto = NULL;
                              return TRUE;
                      }
              }
                  return  FALSE;
          }



          In the former statements, the procedure processes the WM_INITDIALOG and WM_COMMAND
          messages.





              Task  What is the job of IsDialogMessage function? Discuss.
          Self Assessment


          Fill in the blanks:
          14.  ......................... loads the template, creates the dialog box, and optionally exhibits it.
          15.  The procedure demolishes the dialog box when the user clicks the ......................... button.

          12.6 Summary


              There are various DDX_OC functions used to exchange data between a property of an OLE
               control in a dialog box, form view, or control view object and a data member of the dialog
               box, form view, or control view object.
              When we insert a command into  a menu, it would trigger a call to DialogBox(), or  a
               derivative, in our command message handling code.

              In our main application, we need to modify our menu and/or toolbar to add a command
               to activate our dialog box.
              Global variables can be read or modified by any part of the program, making it difficult
               to remember or reason about every possible use.
              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 are just like any other form in your application and loose their
               focus as soon as you click some other Window outside the application.

              A System Modal dialog box restricts the user from continuing work on the system unless
               it gets unloaded.
              You create a modeless dialog box by means of the CreateDialog function, mentioning the
               identifier or name of a  dialog box template resource and a pointer to the dialog box
               procedure.







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