GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-Jul-2005, 23:49
shinyhui shinyhui is offline
Awaiting Email Confirmation
 
Join Date: Feb 2005
Posts: 38
shinyhui is on a distinguished road
Exclamation

Save MSChart control into bitmap format


How can i save my chart with type of MSChart control into bitmap format?

please advice!!
  #2  
Old 29-Jul-2005, 14:53
aie0 aie0 is offline
Member
 
Join Date: Dec 2004
Posts: 246
aie0 is a jewel in the roughaie0 is a jewel in the rough
I am not sure about this, but I think it will do the trick

CPP / C++ / C Code:

// order chart to copy itself onto clipboard
	m_chart.EditCopy();

	// make sure the item in clipboard is a bitmap
	if(IsClipboardFormatAvailable(CF_BITMAP))
	{
		if(OpenClipboard())
		{
			m_hbitmap = (HBITMAP)::GetClipboardData(CF_BITMAP);
			CloseClipboard();
		}
	}

 
 

Recent GIDBlogUS Elections and the ?Voter?s Responsibility? by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[winapi] edit control is lying to me... ubergeek C Programming Language 8 15-May-2005 19:02
how to save output kumaran MS Visual C++ / MFC Forum 1 02-May-2005 07:32
MSChart control, with ADO Recordset object shinyhui C++ Forum 0 25-Feb-2005 01:32
Help! Some basal questions about MFC xutingnjupt MS Visual C++ / MFC Forum 1 05-Dec-2004 04:38

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 10:01.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.