AngryChicken
AngryChicken

Reputation: 360

How to position statusbar on top of OPENGL?

The problem that I'm having at the moment is that OpenGL overlaps my status bar, whereas the menu of the window doesn't change. Any ideas how to solve this issue? to make statusbar on top just like the menu.

I use CreateWindowEx for both the main window (custom WNDCLASS) and the statusbar(STATUSCLASSNAME) with WS_CHILD enabled. Maybe I'm missing some of the flags.

PS. I don't use GLUT nor any other 3rd party libraries only Windows and OpenGL

Upvotes: 2

Views: 519

Answers (1)

Roger Rowland
Roger Rowland

Reputation: 26259

You just need to add the WS_CLIPCHILDREN and WS_CLIPSIBLINGS styles to your OpenGL window.

Upvotes: 2

Related Questions