what the problem with this
If you create the child control using CreateWindow(), you should use DestroyWindow() to delete them. For example:
DestroyWindow (hBtn);
Quote:Original post by superpig
Make sure that after you've called ShowWindow, you call glClear/glSwapBuffers.
yes , i have used glClear(GL_COLOR_BUFFER_BIT);
but the buttons are not disapearing :(
kindly help
thanks
yes
i have tried both destroy window
and
show window( with sh_hide )
and called giclear after
but buttons are not diapearing , but rest of my screen is cleared
i have tried both destroy window
and
show window( with sh_hide )
and called giclear after
but buttons are not diapearing , but rest of my screen is cleared
Where do you call glClear()? After glClearColor() and in your main animation loop before rendering?
I also noticed you are not handling WM_PAINT to repaint your parent window. This might not be where your problem is though.
Can you please post your new WinMain() routine?
I also noticed you are not handling WM_PAINT to repaint your parent window. This might not be where your problem is though.
Can you please post your new WinMain() routine?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement