Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to clear a custom control? Pin
cyn89-Jan-07 16:52
cyn89-Jan-07 16:52 
GeneralRe: how to clear a custom control? Pin
Christian Graus9-Jan-07 17:44
protectorChristian Graus9-Jan-07 17:44 
GeneralRe: how to clear a custom control? Pin
cyn810-Jan-07 14:22
cyn810-Jan-07 14:22 
QuestionWho can give me a detailed explanation to GetWindowRect? Pin
Nothend9-Jan-07 14:21
Nothend9-Jan-07 14:21 
AnswerRe: Who can give me a detailed explanation to GetWindowRect? Pin
Christian Graus9-Jan-07 16:43
protectorChristian Graus9-Jan-07 16:43 
QuestionMessage Removed Pin
9-Jan-07 13:37
Armond Sarkisian9-Jan-07 13:37 
AnswerRe: Sockets Programming Pin
Stephen Hewitt9-Jan-07 16:00
Stephen Hewitt9-Jan-07 16:00 
Questionhow to capture a big window? Pin
Rockone9-Jan-07 13:24
Rockone9-Jan-07 13:24 
i want to capture a window to a bitmap.
when the document size is bigger than current viewable rectangle, if using the document size to the captured image will has a big black block.
<br />
	CSize size = GetTotalSize();<br />
	CClientDC dc(this);<br />
	CDC memDc;<br />
	if(!memDc.CreateCompatibleDC(&dc))<br />
	{<br />
		return ;<br />
	}<br />
	CBitmap bitmap;<br />
	if( !bitmap.CreateCompatibleBitmap(&dc, size.cx, size.cy) )<br />
	{<br />
		return ;<br />
	}<br />
	CBitmap* pOldBitmap = memDc.SelectObject(&bitmap);<br />
	memDc.BitBlt(0, 0, size.cx, size.cy, &dc, 0, 0, SRCCOPY );<br />
	if( OpenClipboard() )<br />
	{<br />
		EmptyClipboard();<br />
		SetClipboardData(CF_BITMAP, bitmap.GetSafeHandle());<br />
		CloseClipboard();<br />
	}<br />
	memDc.SelectObject(pOldBitmap);<br />


any suggestion or tips will be great help.

thank you in advance.
AnswerRe: how to capture a big window? Pin
Christian Graus9-Jan-07 13:40
protectorChristian Graus9-Jan-07 13:40 
GeneralRe: how to capture a big window? Pin
Stephen Hewitt9-Jan-07 13:50
Stephen Hewitt9-Jan-07 13:50 
GeneralRe: how to capture a big window? Pin
Rockone9-Jan-07 15:17
Rockone9-Jan-07 15:17 
GeneralRe: how to capture a big window? Pin
Rockone9-Jan-07 15:43
Rockone9-Jan-07 15:43 
QuestionFunction problems Pin
dellthinker9-Jan-07 10:52
dellthinker9-Jan-07 10:52 
AnswerRe: Function problems Pin
toxcct9-Jan-07 11:05
toxcct9-Jan-07 11:05 
GeneralRe: Function problems Pin
dellthinker9-Jan-07 11:40
dellthinker9-Jan-07 11:40 
GeneralRe: Function problems Pin
Stephen Hewitt9-Jan-07 12:39
Stephen Hewitt9-Jan-07 12:39 
GeneralRe: Function problems Pin
Stephen Hewitt9-Jan-07 12:41
Stephen Hewitt9-Jan-07 12:41 
AnswerRe: Function problems Pin
Christian Graus9-Jan-07 13:54
protectorChristian Graus9-Jan-07 13:54 
QuestionGood resource for MFC MDI application development?? Pin
pavanbabut9-Jan-07 10:44
pavanbabut9-Jan-07 10:44 
AnswerRe: Good resource for MFC MDI application development?? Pin
Mark Salsbery9-Jan-07 11:11
Mark Salsbery9-Jan-07 11:11 
GeneralRe: Good resource for MFC MDI application development?? Pin
pavanbabut9-Jan-07 11:18
pavanbabut9-Jan-07 11:18 
GeneralRe: Good resource for MFC MDI application development?? Pin
pavanbabut10-Jan-07 10:26
pavanbabut10-Jan-07 10:26 
GeneralRe: Good resource for MFC MDI application development?? Pin
Mark Salsbery10-Jan-07 10:40
Mark Salsbery10-Jan-07 10:40 
QuestionList control question Pin
David Crow9-Jan-07 10:24
David Crow9-Jan-07 10:24 
AnswerRe: List control question Pin
Michael Dunn9-Jan-07 13:27
sitebuilderMichael Dunn9-Jan-07 13:27 

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.