Sign in to follow this  
gp343

glutPostRedisplay equivalent in Windows

Recommended Posts

Been a while since I've messed with MFC/GDI stuff but, from looking at the documentation I think this would be the proper way to handle it. You can check the documentation for more of the flags to control which messages are sent to your windows procedure.


BOOL RedrawWindow(
HWND hWnd, // handle to window
CONST RECT *lprcUpdate, // update rectangle
HRGN hrgnUpdate, // handle to update region
UINT flags // array of redraw flags
);

/* If both the hrgnUpdate and lprcUpdate parameters are NULL, the entire client area is added to the update region. */

RedrawWindow(hWnd, NULL, NULL, RDW_UPDATENOW);






Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this