Click here to Skip to main content
15,915,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ program Pin
Rajesh R Subramanian21-Apr-08 18:40
professionalRajesh R Subramanian21-Apr-08 18:40 
Generaltutorial on how to make a proper popup window Pin
Jim Crafton21-Apr-08 9:01
Jim Crafton21-Apr-08 9:01 
GeneralRe: tutorial on how to make a proper popup window Pin
led mike21-Apr-08 10:18
led mike21-Apr-08 10:18 
GeneralRe: tutorial on how to make a proper popup window Pin
Jim Crafton21-Apr-08 11:43
Jim Crafton21-Apr-08 11:43 
GeneralRe: tutorial on how to make a proper popup window Pin
bob1697221-Apr-08 10:29
bob1697221-Apr-08 10:29 
GeneralRe: tutorial on how to make a proper popup window Pin
Jim Crafton21-Apr-08 17:47
Jim Crafton21-Apr-08 17:47 
GeneralCopying the screen to a bitmap Pin
Anthony Appleyard21-Apr-08 6:52
Anthony Appleyard21-Apr-08 6:52 
GeneralRe: Copying the screen to a bitmap Pin
David Crow21-Apr-08 8:44
David Crow21-Apr-08 8:44 
Anthony Appleyard wrote:
Please how could I copy the whole of the user area (i.e. not the edging) of the current job's window onto a bitmap?


If you are using MFC, try something like:

CDC dc;
HDC hdc = ::GetDC(wnd->m_hWnd);
dc.Attach(hdc);
CDC memDC;
memDC.CreateCompatibleDC(&dc);
CRect r;
wnd->GetClientRect(&r);
CSize sz(r.Width(), r.Height());
CBitmap bm;
bm.CreateCompatibleBitmap(&dc, sz.cx, sz.cy);
CBitmap *oldbm = memDC.SelectObject(&bm);
memDC.BitBlt(0, 0, sz.cx, sz.cy, &dc, 0, 0, SRCCOPY);


"Love people and use things, not love things and use people." - Unknown

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: Copying the screen to a bitmap Pin
Anthony Appleyard21-Apr-08 12:21
Anthony Appleyard21-Apr-08 12:21 
GeneralRe: Copying the screen to a bitmap Pin
Randor 21-Apr-08 15:38
professional Randor 21-Apr-08 15:38 
GeneralRe: Copying the screen to a bitmap Pin
Anthony Appleyard21-Apr-08 18:52
Anthony Appleyard21-Apr-08 18:52 
GeneralRe: Copying the screen to a bitmap Pin
Hamid_RT21-Apr-08 20:41
Hamid_RT21-Apr-08 20:41 
GeneralDynamic char array in C++ - Need solution Pin
Md Saleem Navalur21-Apr-08 4:36
Md Saleem Navalur21-Apr-08 4:36 
GeneralRe: Dynamic char array in C++ - Need solution Pin
Maximilien21-Apr-08 4:44
Maximilien21-Apr-08 4:44 
GeneralRe: Dynamic char array in C++ - Need solution Pin
Md Saleem Navalur21-Apr-08 7:49
Md Saleem Navalur21-Apr-08 7:49 
QuestionRe: Dynamic char array in C++ - Need solution Pin
David Crow21-Apr-08 4:55
David Crow21-Apr-08 4:55 
GeneralRe: Dynamic char array in C++ - Need solution Pin
CPallini21-Apr-08 5:02
mveCPallini21-Apr-08 5:02 
GeneralRe: Dynamic char array in C++ - Need solution Pin
Md Saleem Navalur21-Apr-08 7:48
Md Saleem Navalur21-Apr-08 7:48 
GeneralRe: Dynamic char array in C++ - Need solution Pin
David Crow21-Apr-08 7:56
David Crow21-Apr-08 7:56 
GeneralRe: Dynamic char array in C++ - Need solution Pin
JudyL_MD21-Apr-08 10:09
JudyL_MD21-Apr-08 10:09 
GeneralRe: Dynamic char array in C++ - Need solution Pin
Robert Surtees21-Apr-08 10:23
Robert Surtees21-Apr-08 10:23 
GeneralRe: Dynamic char array in C++ - Need solution Pin
CPallini21-Apr-08 12:00
mveCPallini21-Apr-08 12:00 
GeneralRe: Dynamic char array in C++ - Need solution Pin
Robert Surtees21-Apr-08 14:14
Robert Surtees21-Apr-08 14:14 
GeneralRe: Dynamic char array in C++ - Need solution Pin
CPallini21-Apr-08 21:31
mveCPallini21-Apr-08 21:31 
GeneralRe: Dynamic char array in C++ - Need solution Pin
Stephen Hewitt21-Apr-08 15:06
Stephen Hewitt21-Apr-08 15:06 

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.