Device context - visual c++, Visual Basic Programming

DEVICE CONTEXT

The device context provides the essential drawing tools and the platform to draw. It helps to draw the text, shapes, lines etc. To create the device context, the MFC provides different classes like CDC and CClientDC.

The CDC is the most primary class to draw in MFC. It provides all of the fundamental drawing steps.

The CClientDC class is used for drawing in the client region of a window.

The Device context is a windows data structure which supports the device independent output.

The function of device context is best elaborated by the figure.

624_role of device context.png

Figure: The Role of Device Context

The logical display is a virtual device and Actual display is the physical device. The programmers do not require worrying about the medium in which he is writing the output. The device context takes care of the output medium.

Posted Date: 10/10/2012 1:31:48 AM | Location : United States







Related Discussions:- Device context - visual c++, Assignment Help, Ask Question on Device context - visual c++, Get Answer, Expert's Help, Device context - visual c++ Discussions

Write discussion on Device context - visual c++
Your posts are moderated
Related Questions
I''m trying to create a program in VB.net that will basically load the page within itself and allow you to input data via the program rather than going to the actual site using you

A program is needed to assist computing automobile repair bills. The cost of labor is $35 per hour. The costs for parts are subject to a 5% sales tax, which should be added t

Message Handling: 1. The message is send to the window. And it is sent to the Window Procedure. 2. The message map holds all the message handlers. 3. The window procedur

You can employ the SCRIPT element to add VBScript code to an HTML page. The SCRIPT Tag VBScript code is written inside paired SCRIPT tags. For instance, a process to test

Software That Is Obscure: The Software hides the intensions, meaning and actions from the user. For illustration, if a user is asked whether a full installation, the custom in

You can exit a Do...Loop using the Exit Do statement. Since usually you desire to exit only in certain situations, such as to ignore an endless loop, you should employ the Exit Do

Executesql: The ExecuteSQL is used for executing the query on the database. The CRecordset uses the RFX mechanism to replace data between field data members of the record set

ARCHITECTURE OF WIN 32 PROGRAM   Figure: working of Win 3 program The hardware events in the figure are the mouse associated events like the mouse move, left

INTRODUCTION TO VB: The Windows programming is an event driven programming. The VB uses the Hungarian Notation for naming the variables. It deals with new data types like HWND,

write a XML with database with book details( book id, author ,subject, published year, vendor,price, language )