Windows paint message

BlitzMax Forums/BlitzMax Programming/Windows paint message

I understand that. Now that I see my response, it does look like i thought the Events were only for MaxGUI.

I was just trying to make the point that I am not waiting for user input. I am writing a game and stuff is going on, AI, and whatnot. It is just that nothing is moving on the screen most of the time, no reason to be constantly drawing and flipping if it isn't needed.

There is no Event that I can see that tells me my screen needs to be painted. Windows sends out a WS_PAINT message when a window needs to be redrawn. I was wondering if BlitzMax made that event available to the user somehow without using some sort of external API call or hook?

In a sample app, I ran a loop that DebugLog'd the Events and I did not see any events when I covered and uncovered my window with another window.

Am I missing something? Maybe this is a feature that can be added...

Thanks for the replys.