Witam mam problem. Chce narysować 10 linni w paincie a maluje tylko jedną w tym samym miejscu.
#include <iostream>
#include <windows.h>
using namespace std;
int main(int argc, char *argv[])
{
int i,j;
_sleep(2000);
for(i=0; i<10; i++)
{
j+100;
SetCursorPos('j',190);
mouse_event(MOUSEEVENTF_LEFTDOWN,0 ,0,0,0);
SetCursorPos('j',300);
mouse_event(MOUSEEVENTF_LEFTUP,0 ,0,0,0);
_sleep(100);
}
return 0;
}