Solved

Print problem/ Access OnDraw(CDC* pDC) method

Posted on 2007-11-15
3
407 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 500 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

746 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

12 Experts available now in Live!

Get 1:1 Help Now