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

C / C++ / MFC

 
GeneralRe: CRichEditCtrl onthe Fly Pin
Tomasz Sowinski22-Jun-01 1:58
Tomasz Sowinski22-Jun-01 1:58 
GeneralShowing modeless forms in VB DLLs called from MFC Pin
22-Jun-01 1:17
suss22-Jun-01 1:17 
GeneralDetermination of installed browsers & java engines Pin
22-Jun-01 1:01
suss22-Jun-01 1:01 
GeneralCHtmlView - load html from memory Pin
Kristian Nilssen22-Jun-01 0:47
Kristian Nilssen22-Jun-01 0:47 
GeneralRe: CHtmlView - load html from memory Pin
22-Jun-01 3:56
suss22-Jun-01 3:56 
GeneralRe: CHtmlView - load html from memory Pin
22-Jun-01 11:00
suss22-Jun-01 11:00 
GeneralCapture Screen and save it as a JPEG file Pin
Kiddxin22-Jun-01 0:05
Kiddxin22-Jun-01 0:05 
GeneralRe: Capture Screen and save it as a JPEG file Pin
olivier22-Jun-01 2:08
olivier22-Jun-01 2:08 
this code will capture the screen and put it in a HBITMAP, you just then have to save it to a file

CDC dcScreen;
CDC dcMem;
CRect rc (m_lLeft,m_lTop,m_lRight,m_lBottom); // set this to be screen coords of window you want to grab

dcScreen.CreateDC(_T("DISPLAY"), NULL, NULL, NULL);
// create a memory DC compatible to screen DC
dcMem.CreateCompatibleDC(&dcScreen);

// create a bitmap compatible with the screen DC
HBITMAP hbmp = ::CreateCompatibleBitmap(dcScreen.m_hDC, rc.Width(),rc.Height());

// select new bitmap into memory DC
HBITMAP bmpOld = (HBITMAP)::SelectObject(dcMem.m_hDC,hbmp);

// bitblt screen DC to memory DC
dcMem.BitBlt(0, 0, rc.Width(),rc.Height(),&dcScreen, rc.left, rc.top,SRCCOPY);

// get screen image
hbmp = (HBITMAP)::SelectObject(dcMem.m_hDC,bmpOld);
QuestionWhich method of CFile write as text to file ??? Pin
21-Jun-01 21:50
suss21-Jun-01 21:50 
AnswerRe: Which method of CFile write as text to file ??? Pin
Michael Dunn21-Jun-01 21:53
sitebuilderMichael Dunn21-Jun-01 21:53 
GeneralThis is my struct: Please show me how to save it to file as text by CFile object Pin
21-Jun-01 22:13
suss21-Jun-01 22:13 
GeneralURGENT !!! HELP !!! PLEASE !!! Pin
21-Jun-01 23:19
suss21-Jun-01 23:19 
GeneralI did write so: Pin
22-Jun-01 4:47
suss22-Jun-01 4:47 
Generalshell programming - adding a network place automatically Pin
21-Jun-01 21:49
suss21-Jun-01 21:49 
GeneralVery easy Pin
21-Jun-01 21:27
suss21-Jun-01 21:27 
GeneralRe: Very easy Pin
Olli21-Jun-01 21:55
Olli21-Jun-01 21:55 
QuestionHow to know a process is being debugged ? Pin
manio21-Jun-01 16:14
manio21-Jun-01 16:14 
AnswerRe: How to know a process is being debugged ? Pin
21-Jun-01 19:06
suss21-Jun-01 19:06 
AnswerRe: How to know a process is being debugged ? Pin
Michael Dunn21-Jun-01 21:50
sitebuilderMichael Dunn21-Jun-01 21:50 
AnswerRe: How to know a process is being debugged ? Pin
24-Jun-01 18:10
suss24-Jun-01 18:10 
GeneralReturning a CString. Pin
John Uhlenbrock21-Jun-01 10:36
John Uhlenbrock21-Jun-01 10:36 
GeneralRe: Returning a CString. Pin
Tomasz Sowinski21-Jun-01 10:41
Tomasz Sowinski21-Jun-01 10:41 
GeneralRe: Returning a CString. Pin
John Uhlenbrock21-Jun-01 10:44
John Uhlenbrock21-Jun-01 10:44 
GeneralRe: Returning a CString. Pin
Andrew Peace21-Jun-01 10:50
Andrew Peace21-Jun-01 10:50 
GeneralRe: Returning a CString. Pin
John Uhlenbrock21-Jun-01 11:32
John Uhlenbrock21-Jun-01 11:32 

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.