Solved

Print problem/ Access OnDraw(CDC* pDC) method

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

776 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