Works just fine for me. You're probably passing the wrong window handle to DefWindowProc inside cif_win32_wndproc.

In an unrelated note, since you're using the portable OpenGL, I'd suggest not limiting yourself on a single OS. Libraries such as SDL2 mix with OpenGL quite well, and make your program multi-platform without any extra effort.

In an unrelated note, since you're using the portable OpenGL, I'd suggest not limiting yourself on a single OS. Libraries such as SDL2 mix with OpenGL quite well, and make your program multi-platform without any extra effort.

Actually, as I said I'm building multiple backends as I'm creating an SDL2 alternative for myself. SDL1 as far as I know is not supported anymore and it ended up being easier to remake certain things while also supporting more than just the three major systems. Sounds stupid, but I like to build things myself even if it takes a bit more time.