[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Loading and printing bitmaps in Dialog Application

Posted on 1998-10-23
1
Medium Priority
?
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
Maizlish earned 240 total points
ID: 1323747
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

656 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