OSボム
■ このスレッドは過去ログ倉庫に格納されています
0001DELL
NGNG#include<time.h>
long __stdcall WndProc(HWND h, UINT u, WPARAM w , LPARAM l){
HDC d; PAINTSTRUCT p; static RECT r;
static char str[128] = "go to hell! FuckUP!!!.";
switch(u){
case WM_CLOSE:
return 0;
case 15:
d = BeginPaint(h,&p);
GetClientRect(h,&r);
DrawText(d,str,-1,&r,DT_WORDBREAK);
EndPaint(h,&p);
return 0;
}
return DefWindowProc(h,u,w,l);
}
int __stdcall WinMain(HINSTANCE I, HINSTANCE,
PSTR s, int n){
HWND h;MSG msg;WNDCLASS w;
w.style= CS_HREDRAW | CS_VREDRAW;
w.lpfnWndProc= WndProc;
w.cbClsExtra= w.cbWndExtra= 0;
w.hInstance= I;
w.hIcon= LoadIcon(0, IDI_HAND);
w.hCursor= LoadCursor(0, IDC_NO);
w.hbrBackground= (HBRUSH)GetStockObject(WHITE_BRUSH);
w.lpszMenuName= 0;
w.lpszClassName= "STATIC";
RegisterClass(&w);
for(int x,y,i = 0;i<300;i++){
x = rand() % 924;
y = rand() % 668;
h = CreateWindowEx(WS_EX_TOPMOST,
"STATIC","アーッヒャッヒャッヒャ",
WS_OVERLAPPEDWINDOW | WS_VISIBLE ,
x , y , 200 , 200 , 0 , 0,
I , 0
);}
while (GetMessage(&msg , 0, 0 , 0)) DispatchMessage(&msg);
return msg.wParam;
}
■ このスレッドは過去ログ倉庫に格納されています