what the problem with this

Started by
37 comments, last by Crypter 16 years ago
can somebody help please
Advertisement
If you create the child control using CreateWindow(), you should use DestroyWindow() to delete them. For example:
DestroyWindow (hBtn);
i have even tries destroy window but but the button does not disapear

kindly help
any suggestions?
Make sure that after you've called ShowWindow, you call glClear/glSwapBuffers.

Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse

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
Have you done it after calling ShowWindow?

Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse

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
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?

This topic is closed to new replies.

Advertisement