Pure C ++ code is embarrassed embarrassed embarrassed deceptive V1.1 [rendering the video display, the locking mouse]

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

Pure C ++ code is embarrassed embarrassed embarrassed deceptive V1.1 [rendering the video display, the locking mouse]


Do not speak, the Code

Use: deceptive, you know


Precautions

Do not copy, do not copy, do not copy! ! !

Without permission is forbidden! ! !

Focus is not on here.

This piece of code is not aggressive and destructive! ! !

Do not pay attention to deceptive, accidentally labeled pig [Oh]

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
void HideWindow() {
	HWND hwnd;
	hwnd=FindWindow("ConsoleWindowClass",NULL);
	if(hwnd) ShowWindow(hwnd,SW_HIDE);
	return;
}
int main() {
	HideWindow();
	int pix;
	HWND wnd;
	HDC dc;
	wnd=FindWindow("SysListView32",NULL);
	dc=GetDC(wnd);
	pix=RGB(0,0,0);
	int x=0;
	int y=0;
	while(1)
		for(int i=0; i<5000; i++) {
			for(int j=0; j<1000; j++) {
				SetCursorPos(0,0);
				pix=RGB(i%255,j%255,(i+j)%255);
				SetPixel(dc,x+i,y+j,pix);
			}
		}
	return 0;
}

pay attention

Dev-cpp can run through, but it must be in
the tool - connection options - "compile option"
append in

 -lgdi32

Little tail

啥也没有...

Guess you like

Origin blog.csdn.net/yuanwow/article/details/92123396