#include <windows.h>
int main()
{
XFORM blah;
blah.eM22 = 1.0f;
blah.eDx = 0.0f;
blah.eDy = 0.0f;
blah.eM11 = 1.0f;
float blahm1 = 0.0;
float blahm2 = 0.0;
HDC hdc = CreateCompatibleDC(NULL);
HBITMAP cross = (HBITMAP)LoadImage(NULL, ("C:\\Documents and Settings\\Death\\My Documents\\45Hand.bmp") ,IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
HBITMAP crossmask = (HBITMAP)LoadImage(NULL, ("C:\\Documents and Settings\\Death\\My Documents\\45Hand2.bmp") ,IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
while (1)
{
HDC hdc_x = GetDC(HWND_DESKTOP);
blahm2 = (blahm2 + 0.0001f);
blah.eM12 = blahm1;
blah.eM21 = blahm2;
SelectObject(hdc, cross);
SetGraphicsMode(hdc_x, GM_ADVANCED);
SetWorldTransform(hdc_x, &blah);
BitBlt(hdc_x,512,384,800,703,hdc,0,0,SRCAND);
ReleaseDC(HWND_DESKTOP,hdc_x);
}
return 0;
}
我不希望这会如此疯狂地滞后,但是当我一次执行该程序的 2 个实例时,我的整个计算机实际上变得没有响应,例如,如果我在这种情况下右键单击,菜单实际上需要大约 10 秒出现。