winapi – WIn API Basic Paint program

winapi – WIn API Basic Paint program

On WM_LBUTTONDOWN you have to set a variable in your program to true (yes mouse is currently down), in your WM_MOUSEMOVE you then check that variable and only draw it it is true. On WM_LBUTTONUP you then set that variable to false. (The variable should be initialized to false).

winapi – WIn API Basic Paint program

Leave a Reply

Your email address will not be published.