Solved

Print problem/ Access OnDraw(CDC* pDC) method

Posted on 2007-11-15
3
427 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
[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
  • 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

Webinar: MongoDB® Index Types

Join Percona’s Senior Technical Services Engineer, Adamo Tonete as he presents “MongoDB Index Types, How, When and Where Should They be Used?” on Wednesday, July 12, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7).

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…
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…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

623 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