Solved

Loading and printing bitmaps in Dialog Application

Posted on 1998-10-23
1
218 Views
Last Modified: 2013-11-20
How can i succesfully load (without drawing the bmp to the dialog box)and print bitmap in a dialog box application?
0
Comment
Question by:jopoy
1 Comment
 

Accepted Solution

by:
Maizlish earned 120 total points
Comment Utility
Here is a sequence :
1.Create compatible memory device ( for dialog box or printer ) - see CreateCompatibleDevice documentation

2.Read the BMP file

3.Create compatible bitmap ( CreateCompatibleBitmap ) and initialize it with the data read from the file

4.Select the bitmap into the device you have created in the step 1 - see SelectObject

Now you have bitmap selected in the invisible device context - and you are free to do anything with it - even sending to printer .

Hope it helps ,
Oleg

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now