Click here to Skip to main content
15,918,243 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOpen Files Pin
Anonymous19-Jul-05 19:09
Anonymous19-Jul-05 19:09 
GeneralRe: Open Files Pin
22491719-Jul-05 19:57
22491719-Jul-05 19:57 
GeneralConvert mm(millimeter) into pixels for use with TextOut Pin
wasife19-Jul-05 19:09
wasife19-Jul-05 19:09 
GeneralRe: Convert mm(millimeter) into pixels for use with TextOut Pin
Marc Soleda19-Jul-05 20:10
Marc Soleda19-Jul-05 20:10 
GeneralRe: Convert mm(millimeter) into pixels for use with TextOut Pin
RicoH20-Jul-05 0:42
RicoH20-Jul-05 0:42 
GeneralScreen Capture Pin
dSolariuM19-Jul-05 18:14
dSolariuM19-Jul-05 18:14 
GeneralRe: Screen Capture Pin
nm_11419-Jul-05 19:55
nm_11419-Jul-05 19:55 
GeneralRe: Screen Capture Pin
vishalmore20-Jul-05 1:26
vishalmore20-Jul-05 1:26 
Hi dSolariuM,

This is the way to capture the entire screen

HDC hScreenDC = CreateDC("DISPLAY", NULL, NULL, NULL);
HDC hCompatibleDC = CreateCompatibleDC(hScreenDC);
HBITMAP hScreenBitmap = CreateCompatibleBitmap(hScreenDC,
GetDeviceCaps(hScreenDC, HORZRES), GetDeviceCaps(hScreenDC, VERTRES));

HGDIOBJ hPrevObject = SelectObject(hCompatibleDC, hScreenBitmap);
BitBlt(hCompatibleDC,0,0,GetDeviceCaps(hScreenDC, HORZRES),
GetDeviceCaps(hScreenDC, VERTRES),hScreenDC,0,0,SRCCOPY);
OpenClipboard(GetActiveWindow());
EmptyClipboard();
SetClipboardData(CF_BITMAP,hScreenBitmap);
CloseClipboard();

This code snipet would copy the screen snap in the clipboard.

Hope this would solve your problem.

Have fun !

Cheers,
Vishal

GeneralRe: Screen Capture Pin
dSolariuM21-Jul-05 0:00
dSolariuM21-Jul-05 0:00 
GeneralUsing Microsoft computer login dialog Pin
astibich219-Jul-05 17:07
astibich219-Jul-05 17:07 
GeneralRe: Using Microsoft computer login dialog Pin
David Crow20-Jul-05 3:20
David Crow20-Jul-05 3:20 
GeneralCancel dialog question Pin
nm_11419-Jul-05 14:25
nm_11419-Jul-05 14:25 
GeneralRe: Cancel dialog question Pin
Blake V. Miller19-Jul-05 19:01
Blake V. Miller19-Jul-05 19:01 
GeneralRe: Cancel dialog question Pin
nm_11419-Jul-05 19:09
nm_11419-Jul-05 19:09 
GeneralListCtrl and TreeCtrl Pin
Mohammed F. Salem19-Jul-05 11:13
Mohammed F. Salem19-Jul-05 11:13 
GeneralRe: ListCtrl and TreeCtrl Pin
Christian Graus19-Jul-05 11:18
protectorChristian Graus19-Jul-05 11:18 
GeneralRe: ListCtrl and TreeCtrl Pin
Mohammed F. Salem19-Jul-05 21:10
Mohammed F. Salem19-Jul-05 21:10 
GeneralRe: ListCtrl and TreeCtrl Pin
Christian Graus20-Jul-05 11:50
protectorChristian Graus20-Jul-05 11:50 
QuestionHow can i use (dbf) FoxPro files with MFC Pin
vugar19-Jul-05 10:46
vugar19-Jul-05 10:46 
AnswerRe: How can i use (dbf) FoxPro files with MFC Pin
Graham Bradshaw19-Jul-05 13:03
Graham Bradshaw19-Jul-05 13:03 
GeneralVugar Avazov Pin
vugar19-Jul-05 10:22
vugar19-Jul-05 10:22 
GeneralPassing variables between dialogs Pin
Nick Usechak19-Jul-05 9:16
Nick Usechak19-Jul-05 9:16 
GeneralRe: Passing variables between dialogs Pin
Chris Losinger19-Jul-05 9:30
professionalChris Losinger19-Jul-05 9:30 
GeneralRe: Passing variables between dialogs Pin
Nick Usechak19-Jul-05 10:05
Nick Usechak19-Jul-05 10:05 
GeneralRe: Passing variables between dialogs Pin
Chris Losinger19-Jul-05 10:13
professionalChris Losinger19-Jul-05 10:13 

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.