Click here to Skip to main content
15,925,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: INI file question Pin
David Crow9-Mar-04 2:13
David Crow9-Mar-04 2:13 
GeneralTransferring a BMP file on network Pin
prasadddeshpande8-Mar-04 8:09
prasadddeshpande8-Mar-04 8:09 
GeneralRe: Transferring a BMP file on network Pin
Atif Mushtaq8-Mar-04 18:56
Atif Mushtaq8-Mar-04 18:56 
GeneralRe: Transferring a BMP file on network Pin
prasadddeshpande10-Mar-04 7:45
prasadddeshpande10-Mar-04 7:45 
GeneralNeed help with this..IE snapshot Pin
AWebDude8-Mar-04 8:07
AWebDude8-Mar-04 8:07 
GeneralRe: Need help with this..IE snapshot Pin
Anonymous8-Mar-04 9:40
Anonymous8-Mar-04 9:40 
GeneralRe: Need help with this..IE snapshot Pin
AWebDude8-Mar-04 10:01
AWebDude8-Mar-04 10:01 
GeneralRe: Need help with this..IE snapshot Pin
Anonymous9-Mar-04 9:37
Anonymous9-Mar-04 9:37 
Sorry, don't have any examples.
Here is an idea:
HWND hSnapShotWnd = ??; // This is the window for the snapshot (IE)
//create memory dc:
HDC hWinDC = GetDC(NULL);
hDC hMemDC = CreateCompatibleDC(hWinDC);
RECT rcClient;
GetClientRect(hSnapShotWnd , rcClient);
//create bitmap for the snapshot of the client area of the window
HBITMAP hBitmap = CreateCompatibleBitmap(hWinDC, rcClient.right - rcClient.left, rcClient.bottom - rcClient.top);
HBITMAP hOld = SelectObject(hMemDC, hBitmap);
SendMessage(hSnapShotWnd, WM_PRINTCLIENT, (WAPRAM)hMemDC, PRF_ERASEBKGND|PRF_CLIENT|PRF_CHILDREN);
//after that hBitmap contains the picture of the client area of the hSnapShotWnd (if window supports WM_PRINTCLIENT).


SelectObject(hMemDC, hOld);
DeleteDC(hWinDC);
DeleteDC(hMemDC);


HTH,
Edward
GeneralMFC Dialog question Pin
Anonymous8-Mar-04 8:05
Anonymous8-Mar-04 8:05 
GeneralRe: MFC Dialog question Pin
David Crow8-Mar-04 8:51
David Crow8-Mar-04 8:51 
GeneralRe: MFC Dialog question Pin
Tom Wright8-Mar-04 9:04
Tom Wright8-Mar-04 9:04 
GeneralConcatenation of two LPSTR Pin
__Cerb8-Mar-04 6:55
__Cerb8-Mar-04 6:55 
GeneralRe: Concatenation of two LPSTR Pin
antlers8-Mar-04 7:18
antlers8-Mar-04 7:18 
GeneralRe: Concatenation of two LPSTR Pin
Anonymous8-Mar-04 8:20
Anonymous8-Mar-04 8:20 
GeneralRe: Concatenation of two LPSTR Pin
Michael Dunn8-Mar-04 10:02
sitebuilderMichael Dunn8-Mar-04 10:02 
GeneralRe: Concatenation of two LPSTR Pin
chpsoft8-Mar-04 21:35
chpsoft8-Mar-04 21:35 
Generalvc++ help Pin
brianfm8-Mar-04 6:08
brianfm8-Mar-04 6:08 
GeneralWindow Styles Pin
monrobot138-Mar-04 4:18
monrobot138-Mar-04 4:18 
GeneralRe: Window Styles Pin
Steve S8-Mar-04 4:38
Steve S8-Mar-04 4:38 
GeneralRe: Window Styles Pin
monrobot138-Mar-04 6:07
monrobot138-Mar-04 6:07 
GeneralRe: Window Styles Pin
Anonymous8-Mar-04 5:54
Anonymous8-Mar-04 5:54 
GeneralRe: Window Styles Pin
monrobot138-Mar-04 6:08
monrobot138-Mar-04 6:08 
GeneralRe: Window Styles Pin
Michael Dunn8-Mar-04 10:04
sitebuilderMichael Dunn8-Mar-04 10:04 
Generalsize of dll vs exe Pin
GDavy8-Mar-04 3:27
GDavy8-Mar-04 3:27 
GeneralRe: size of dll vs exe Pin
Iain Clarke, Warrior Programmer8-Mar-04 3:44
Iain Clarke, Warrior Programmer8-Mar-04 3:44 

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.