Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC CBitmap LoadBitmap() Pin
tom7621-Jun-03 1:53
tom7621-Jun-03 1:53 
GeneralRe: MFC CBitmap LoadBitmap() Pin
Ryan Binns21-Jun-03 2:02
Ryan Binns21-Jun-03 2:02 
QuestionHow to read and write CD-ROM Pin
happywan20-Jun-03 23:24
happywan20-Jun-03 23:24 
GeneralWeb page memory Pin
jeremysay20-Jun-03 23:04
jeremysay20-Jun-03 23:04 
GeneralRe: Web page memory Pin
tom7620-Jun-03 23:39
tom7620-Jun-03 23:39 
GeneralRe: Web page memory Pin
jeremysay21-Jun-03 0:48
jeremysay21-Jun-03 0:48 
GeneralRe: Web page memory Pin
tom7621-Jun-03 1:59
tom7621-Jun-03 1:59 
GeneralRe: Web page memory Pin
Ryan Binns21-Jun-03 2:11
Ryan Binns21-Jun-03 2:11 
You probably can't. I assume the HTML view simply stores the HTML data which it renders as it needs to. It wouldn't store the individual pixel states.

If you want to get an "image" in a device context, you can try getting the HTML view to print itself. Send it a WM_PRINTCLIENT message with the wParam holding the handle of the device context to print into. Using MFC:
CWnd *pWndHTML; // A pointer to the HTML view window
CDC dc; // A device context to draw into
// Get the correct window handle and setup the device context here
pwndHTML->SendMessage(WM_PRINTCLIENT, (WPARAM)dc.GetSafeHdc(), PRF_ERASEBKGND | PRF_CLIENT);
// The device context should hold a copy of the contents of the view
Keep in mind that this will only get the visible part of the view, not the whole document (unless it fits completely in the window).

Hope this helps,

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: Web page memory Pin
jeremysay23-Jun-03 2:14
jeremysay23-Jun-03 2:14 
GeneralRe: Web page memory Pin
Ryan Binns23-Jun-03 2:16
Ryan Binns23-Jun-03 2:16 
GeneralResource DLL Pin
Florin Ochiana20-Jun-03 22:21
Florin Ochiana20-Jun-03 22:21 
GeneralRe: Resource DLL Pin
Ryan Binns20-Jun-03 22:52
Ryan Binns20-Jun-03 22:52 
GeneralFormat Pin
FlyingDancer20-Jun-03 20:54
FlyingDancer20-Jun-03 20:54 
GeneralRe: Format Pin
Ryan Binns20-Jun-03 22:44
Ryan Binns20-Jun-03 22:44 
GeneralRe: Format Pin
FlyingDancer20-Jun-03 23:08
FlyingDancer20-Jun-03 23:08 
GeneralRe: Format Pin
Ryan Binns20-Jun-03 23:11
Ryan Binns20-Jun-03 23:11 
GeneralRe: Format Pin
FlyingDancer20-Jun-03 23:27
FlyingDancer20-Jun-03 23:27 
QuestionRebuild VC++ Debug Library ? Pin
Will Beattie20-Jun-03 18:40
Will Beattie20-Jun-03 18:40 
AnswerRe: Rebuild VC++ Debug Library ? Pin
Ryan Binns21-Jun-03 0:58
Ryan Binns21-Jun-03 0:58 
GeneralRe: Rebuild VC++ Debug Library ? Pin
Will Beattie21-Jun-03 1:18
Will Beattie21-Jun-03 1:18 
GeneralRe: Rebuild VC++ Debug Library ? Pin
Ryan Binns21-Jun-03 1:30
Ryan Binns21-Jun-03 1:30 
GeneralRe: Rebuild VC++ Debug Library ? Pin
Will Beattie21-Jun-03 1:46
Will Beattie21-Jun-03 1:46 
GeneralRe: Rebuild VC++ Debug Library ? Pin
Baris Kurtlutepe21-Jun-03 5:40
Baris Kurtlutepe21-Jun-03 5:40 
GeneralBeginer Visual C++ Tutorials Pin
YOUNGINS20-Jun-03 18:39
YOUNGINS20-Jun-03 18:39 
GeneralRe: Beginer Visual C++ Tutorials Pin
kochhar20-Jun-03 19:26
kochhar20-Jun-03 19:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.