Original Post
I've been working on an OpenGL based GUI. I know there are probably already made libraries, but this is a learning expirence. I decided to seperate the processing routines from the drawing routines so that a list of current windows could be encapsulated in a window manager of sorts. I modeled most of the api off of win32. It could be better, but I havn't had any linux/apple/other gui programming expirence. Anyways, I have a messagebased system running with messages being generated here and there and being picked up buy individual tasks. When I started the WINDOW manager, it hit me. In windows, what generates the WM_PAINT message? I wrap the mouse and keyboard into classes which generate specalized input messages which i cam process. Would the monitor be the peice of hardware that I wrap? would it be the videocard? Anyways, if anyone knows what generates WM_PAINT, I'd like to hear from you. Thanks in advance. :)