Page 15 - DCAP408_WEB_PROGRAMMING
P. 15

Unit 1: Windows Programming Basics




                                                                                                Notes






              Task  Illustrate the use of PostQuitMessage().


          Self Assessment

          Fill in the blanks:
          6.   Each window control generates ........................ and sends them to the operating system.
          7.   If you have available messages, and you will always have unrefined messages, you can
               call the ........................ function at the end to take over.

          1.5 An Analogy

          Windows programming is complicated. Windows class libraries make Windows programming
          simpler. True or false?














          Sincerely, if you want to write programs that are precisely like the inventors of MFC or OWL
          figured out you would, and you don’t care regarding the overhead, then by means of class
          libraries and application wizards is the method to go. But any time you desire to step outside of
          this path, you’ll find yourself in profound problem.
          Let us provide you an analogy. Visualize that you’re purchasing a set of Lego blocks. You can
          obtain a general purpose set, or you can purchase a particular set for structuring a pirate ship. If
          you want to do to build a pirate ship, the second option is superior. But if you attempt to make
          a Lego car, you’ll have to conquer a few troubles. Finally you’ll come up with something that
          looks like a car, but it will have a humorous steering wheel, utilize an anchor for breaking, and
          the driver will have a stick leg and a black patch over his eye.
          After functioning with this Pirate Lego set for a while, you will turn out to be a specialist in
          constructing approximately anything that could be built with a common purpose set. You’ll
          learn all the tricks — like how to remove the patch from the pirate’s eye, how to paint over the
          skull and crossbones, etc. Eventually you’ll arrive at a point when the amount of information
          you’ve assimilated regarding the Pirate set will be much more than the fundamental engineering
          principles you’d have to learn so as to use general purpose Lego. From that point on, you’ll be
          throwing good money after bad money, investing in growingly complicated (and complicated)
          Pirate sets.








                                           LOVELY PROFESSIONAL UNIVERSITY                                    9
   10   11   12   13   14   15   16   17   18   19   20