Click here to Skip to main content
15,900,725 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmap in picturebox from file Pin
Hamid_RT9-Jan-07 18:36
Hamid_RT9-Jan-07 18:36 
GeneralRe: Bitmap in picturebox from file Pin
Xtinct859-Jan-07 18:41
Xtinct859-Jan-07 18:41 
GeneralRe: Bitmap in picturebox from file Pin
Xtinct859-Jan-07 18:45
Xtinct859-Jan-07 18:45 
GeneralRe: Bitmap in picturebox from file Pin
Hamid_RT9-Jan-07 18:50
Hamid_RT9-Jan-07 18:50 
GeneralRe: Bitmap in picturebox from file Pin
Hamid_RT9-Jan-07 18:52
Hamid_RT9-Jan-07 18:52 
AnswerRe: Bitmap in picturebox from file Pin
Xtinct859-Jan-07 20:15
Xtinct859-Jan-07 20:15 
GeneralRe: Bitmap in picturebox from file Pin
Hamid_RT9-Jan-07 21:30
Hamid_RT9-Jan-07 21:30 
QuestionReplacing CTreeCtrl in-place editor Pin
jon29-Jan-07 15:40
jon29-Jan-07 15:40 
AnswerRe: Replacing CTreeCtrl in-place editor Pin
Haroon Sarwar9-Jan-07 19:15
Haroon Sarwar9-Jan-07 19:15 
GeneralRe: Replacing CTreeCtrl in-place editor Pin
jon210-Jan-07 6:45
jon210-Jan-07 6:45 
GeneralRe: Replacing CTreeCtrl in-place editor Pin
Haroon Sarwar22-Jan-07 18:54
Haroon Sarwar22-Jan-07 18:54 
QuestionSplitter problem Pin
cyn89-Jan-07 14:37
cyn89-Jan-07 14:37 
Questionhow to clear a custom control? Pin
cyn89-Jan-07 14:28
cyn89-Jan-07 14:28 
AnswerRe: how to clear a custom control? Pin
Christian Graus9-Jan-07 16:44
protectorChristian Graus9-Jan-07 16:44 
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 

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.