Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Print problem/ Access OnDraw(CDC* pDC) method

Posted on 2007-11-15
3
Medium Priority
?
450 Views
Last Modified: 2013-12-04
Hello,
i have a little logic understanding problem with an third partie control I use. I bought a suite of controls (Codejock) and use a HexEditor of this collecttion. Now I tried to print out the content of the control to a printer. No success with all methods I know.

Ok, I asked the support of this company and what I get pack from them is:

"You can call its OnDraw(CDC* pDC) method to draw it"

Hmm...i really do not understand what this guy means. Cause the OnDraw of the control is protected, so how to access this from my dialog class?

Can someone help me here?

Ingo
0
Comment
Question by:Ocrana
  • 2
3 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 1500 total points
ID: 20294265
OnDraw will print an image of the control, but not the full hex contents. Is that what you want?.
You can print the hex contents as a text, ignoring all the graphical stuff.
0
 

Author Comment

by:Ocrana
ID: 20294350
Hi,

what I want is to print the Content of the HExview as shown in the control. Means the same formating. This is impossible to see the content of the datablocks. In some cases we need to print them out. But the control do not offer any method to receive the data, the only thing I can get is the raw buffer I give to the hexedit. But this will nt help me out cause I do not have the adresses and not the ASCII view.
0
 

Author Comment

by:Ocrana
ID: 20294393
sorry again;)

what I want is to print the Content of the HexEdit as shown in the control. Means the same formating. This is needed to see the content of the datablocks and the Ascii on the paper
But the control do not offer any method to receive the data, the only thing I can get is the raw buffer I give the hexedit. But this will not help me out cause I do not have the adresses and not the ASCII view.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
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.

886 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