Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Fixing a dialogs location Pin
David Crow28-Aug-07 2:24
David Crow28-Aug-07 2:24 
AnswerRe: Fixing a dialogs location Pin
Nishad S28-Aug-07 1:23
Nishad S28-Aug-07 1:23 
QuestionHow to save CBitmap To .bmp file? Pin
jerome_data27-Aug-07 7:29
jerome_data27-Aug-07 7:29 
QuestionRe: How to save CBitmap To .bmp file? Pin
Hamid_RT27-Aug-07 19:07
Hamid_RT27-Aug-07 19:07 
AnswerRe: How to save CBitmap To .bmp file? Pin
Nishad S27-Aug-07 22:10
Nishad S27-Aug-07 22:10 
QuestionHow do a capture of a control and save to bitmap file? Pin
jerome_data27-Aug-07 6:16
jerome_data27-Aug-07 6:16 
QuestionRe: How do a capture of a control and save to bitmap file? Pin
Mark Salsbery27-Aug-07 7:09
Mark Salsbery27-Aug-07 7:09 
AnswerRe: How do a capture of a control and save to bitmap file? Pin
jerome_data27-Aug-07 7:39
jerome_data27-Aug-07 7:39 
both.

i do this

CDC dc;
CRect rectClient;
thecontrol.GetClientRect(&rectClient);
HDC hdc = ::GetDC(thecontrol.m_hWnd);
dc.Attach(hdc);
CDC memDC;
memDC.CreateCompatibleDC(&dc);

CBitmap bm;
bm.CreateCompatibleBitmap(&dc, rectClient.right, rectClient.bottom);
CBitmap * oldbm = memDC.SelectObject(&bm);
memDC.BitBlt(0, 0, rectClient.right, rectClient.bottom, &dc, 0, 0, SRCCOPY);

here bm as done a screenshot of the control. i want to save this Cbitmap to file .bmp??
If you have other function!!
thanks
GeneralRe: How do a capture of a control and save to bitmap file? Pin
Mark Salsbery27-Aug-07 7:43
Mark Salsbery27-Aug-07 7:43 
GeneralRe: How do a capture of a control and save to bitmap file? Pin
jerome_data27-Aug-07 7:53
jerome_data27-Aug-07 7:53 
GeneralRe: How do a capture of a control and save to bitmap file? Pin
Mark Salsbery27-Aug-07 7:56
Mark Salsbery27-Aug-07 7:56 
GeneralRe: How do a capture of a control and save to bitmap file? Pin
jerome_data27-Aug-07 8:15
jerome_data27-Aug-07 8:15 
GeneralRe: How do a capture of a control and save to bitmap file? Pin
Mark Salsbery27-Aug-07 8:30
Mark Salsbery27-Aug-07 8:30 
GeneralRe: How do a capture of a control and save to bitmap file? Pin
jerome_data27-Aug-07 8:30
jerome_data27-Aug-07 8:30 
GeneralRe: How do a capture of a control and save to bitmap file? Pin
Mark Salsbery27-Aug-07 8:50
Mark Salsbery27-Aug-07 8:50 
GeneralRe: How do a capture of a control and save to bitmap file? Pin
jerome_data27-Aug-07 8:55
jerome_data27-Aug-07 8:55 
QuestionPassing compiler falgs /Preprocessors from the command line Pin
Mohamed Douffir27-Aug-07 6:06
Mohamed Douffir27-Aug-07 6:06 
AnswerRe: Passing compiler falgs /Preprocessors from the command line Pin
jhwurmbach27-Aug-07 6:46
jhwurmbach27-Aug-07 6:46 
GeneralRe: Passing compiler falgs /Preprocessors from the command line Pin
Mohamed Douffir27-Aug-07 7:11
Mohamed Douffir27-Aug-07 7:11 
GeneralRe: Passing compiler falgs /Preprocessors from the command line Pin
jhwurmbach27-Aug-07 7:18
jhwurmbach27-Aug-07 7:18 
AnswerRe: Passing compiler falgs /Preprocessors from the command line Pin
David Crow27-Aug-07 7:15
David Crow27-Aug-07 7:15 
QuestionHelp needed related to Genetic algorithm in image recognition Pin
rayluee27-Aug-07 5:49
rayluee27-Aug-07 5:49 
AnswerRe: Help needed related to Genetic algorithm in image recognition Pin
jhwurmbach27-Aug-07 6:01
jhwurmbach27-Aug-07 6:01 
GeneralRe: Help needed related to Genetic algorithm in image recognition Pin
rayluee27-Aug-07 6:54
rayluee27-Aug-07 6:54 
GeneralRe: Help needed related to Genetic algorithm in image recognition Pin
jhwurmbach27-Aug-07 7:08
jhwurmbach27-Aug-07 7:08 

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.