Page 223 - DCAP408_WEB_PROGRAMMING
P. 223

Anil Sharma, Lovely Professional University                              Unit 14: Text and Graphics Output





                         Unit 14: Text and Graphics Output                                      Notes


            CONTENTS
            Objectives
            Introduction

            14.1 Character Mode vs Graphic Mode
                 14.1.1  Character Mode
                 14.1.2  Graphic Mode

            14.2 The Device Context
            14.3 Text Output
            14.4 WM_PAINT Message
            14.5 Changing the Device Context
            14.6 Device Context Settings

                 14.6.1  Setting and Retrieving the Device Context Brush Color Value
                 14.6.2  Setting the Pen or Brush Color
            14.7 Graphics Output

                 14.7.1  Line and Shape Controls
                 14.7.2  The Image Box and the Picture Box
            14.8 Animated Graphics
            14.9 The Peek Message [] Loop
                 14.9.1  The GetMessage()

                 14.9.2  A New Function, PeekMessage()
            14.10 Summary
            14.11 Keywords

            14.12 Review Questions
            14.13 Further Readings

          Objectives

          After studying this unit, you will be able to:
              Understand Character mode vs. Graphic Mode

              Discuss the concept of Device Context
              Discuss Text output and WM_PAINT message
              Understand Graphics Output

              Illustrate the concept of changing the device context






                                           LOVELY PROFESSIONAL UNIVERSITY                                   217
   218   219   220   221   222   223   224   225   226   227   228