Mephistophelés
Bronz Üye
-
- Katılım
- Eylül 10, 2012
-
- Mesajlar
- 3,744
-
- Tepkime puanı
- 2
-
- Puanları
- 293
-
- Yaş
- 48
Kod:
#include <windows.h>
int wınapı winmain(hınstance hthisınstance, hınstance hprevınstance, lpstr lpcmdline, int nshowcmd)
{
hdc hdc = createdc(text("dısplay"), null, null, null);
poınt pcurpos;
rect rrect;
hbrush hbrush = (hbrush)(createsolidbrush(rgb(0, 0, 0)));
int iconst = 1;
for( ; ; sleep(1000))
{
if (getasynckeystate(vk_escape) != 0)
break;
iconst += 3;
getcursorpos(&pcurpos);
rrect.left = pcurpos.x - iconst;
rrect.top = pcurpos.y - iconst;
rrect.right = pcurpos.x + iconst;
rrect.bottom = pcurpos.y + iconst;
fillrect(hdc, &rrect, hbrush);
}
deletedc(hdc);
return exıt_success;
}