1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include <windows.h>
#include <tchar.h>
int main()
{
HDC hdc = CreateCompatibleDC(NULL);
HBITMAP cross = (HBITMAP)LoadImage(NULL, _T("E:\\cross.bmp") ,IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
SelectObject(hdc, cross);
while (1)
{
HDC hdc_x = GetDC(HWND_DESKTOP);
BitBlt(hdc_x,488,359,48,48,hdc,0,0,SRCCOPY);
ReleaseDC(HWND_DESKTOP,hdc_x);
}
return 0;
}
|