Click here to Skip to main content
15,902,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: HELP ME! About using XML to support VC multi-language program. Pin
prasad_som4-May-07 22:50
prasad_som4-May-07 22:50 
GeneralRe: HELP ME! About using XML to support VC multi-language program. Pin
neo31555304-May-07 23:06
neo31555304-May-07 23:06 
AnswerRe: HELP ME! About using XML to support VC multi-language program. Pin
ThatsAlok16-May-07 18:52
ThatsAlok16-May-07 18:52 
GeneralRe: HELP ME! About using XML to support VC multi-language program. Pin
neo315553017-May-07 3:19
neo315553017-May-07 3:19 
Questionhelp Pin
johnntran0034-May-07 12:01
johnntran0034-May-07 12:01 
AnswerRe: help Pin
Ahmed Charfeddine4-May-07 21:20
Ahmed Charfeddine4-May-07 21:20 
AnswerRe: help Pin
ThatsAlok16-May-07 18:45
ThatsAlok16-May-07 18:45 
QuestionHelpppppppp Pin
HassanKU4-May-07 9:36
HassanKU4-May-07 9:36 
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HDC hdc ;
PAINTSTRUCT ps ;
RECT rect ;
HDC hdcWindow;



static int nScreenWidth, nScreenHeight;

switch (message)
{
case WM_CREATE:
nScreenWidth = GetSystemMetrics(SM_CXSCREEN);
nScreenHeight = GetSystemMetrics(SM_CYSCREEN);
SetTimer( hwnd,0,2000,NULL);


return 0 ;

case WM_LBUTTONDOWN:
{
HWND tBarHandle= NULL;
return 0;
}
case WM_PAINT:
{
hdc = BeginPaint (hwnd, &ps) ;
hdcWindow = GetWindowDC( hwnd);


HWND hDesktopWnd = GetDesktopWindow();
HDC Source = GetDC(hDesktopWnd);
HDC Destination = CreateCompatibleDC(Source);
HBITMAP hCaptureBitmap =CreateCompatibleBitmap(Source, nScreenWidth, nScreenHeight);
SelectObject(Destination,hCaptureBitmap);
BitBlt(Destination,0,0,nScreenWidth,nScreenHeight, Source, 0, 0, SRCCOPY);
BitBlt(hdc,0,0 , nScreenWidth, nScreenHeight, Source, 0,0, SRCCOPY);



ReleaseDC(hDesktopWnd,Destination);
DeleteDC(Source);
DeleteObject(hCaptureBitmap);

EndPaint (hwnd, &ps) ;
}
return 0 ;
case WM_TIMER:
GetClientRect(hwnd,&rect);
InvalidateRect( hwnd, &rect, true);
return 0;
case WM_DESTROY:
PostQuitMessage (0) ;
return 0 ;
}
return DefWindowProc (hwnd, message, wParam, lParam) ;
}
How to convert DDB format to DIB format using GETDIBits() function ????
AnswerRe: Helpppppppp Pin
David Crow4-May-07 9:57
David Crow4-May-07 9:57 
AnswerRe: Helpppppppp Pin
Mark Salsbery4-May-07 10:51
Mark Salsbery4-May-07 10:51 
GeneralRe: Helpppppppp Pin
led mike4-May-07 11:05
led mike4-May-07 11:05 
GeneralRe: Helpppppppp Pin
Mark Salsbery4-May-07 11:12
Mark Salsbery4-May-07 11:12 
GeneralRe: Helpppppppp Pin
toxcct4-May-07 11:15
toxcct4-May-07 11:15 
GeneralRe: Helpppppppp Pin
led mike4-May-07 11:21
led mike4-May-07 11:21 
GeneralRe: Helpppppppp Pin
toxcct4-May-07 11:25
toxcct4-May-07 11:25 
JokeRe: Helpppppppp Pin
Moak4-May-07 11:43
Moak4-May-07 11:43 
JokeRe: Helpppppppp Pin
Mark Salsbery4-May-07 11:47
Mark Salsbery4-May-07 11:47 
GeneralRe: Helpppppppp Pin
Roger Stoltz4-May-07 11:59
Roger Stoltz4-May-07 11:59 
GeneralRe: Helpppppppp Pin
Mark Salsbery4-May-07 12:44
Mark Salsbery4-May-07 12:44 
GeneralRe: Helpppppppp Pin
Rajesh R Subramanian4-May-07 21:39
professionalRajesh R Subramanian4-May-07 21:39 
GeneralRe: Helpppppppp Pin
Mark Salsbery5-May-07 6:00
Mark Salsbery5-May-07 6:00 
QuestionHelpppppp Pin
HassanKU4-May-07 9:34
HassanKU4-May-07 9:34 
GeneralRe: Helpppppp Pin
toxcct4-May-07 9:39
toxcct4-May-07 9:39 
GeneralRe: Helpppppp Pin
HassanKU4-May-07 9:48
HassanKU4-May-07 9:48 
GeneralRe: Helpppppp Pin
toxcct4-May-07 9:55
toxcct4-May-07 9:55 

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.