thanks kevin for the opengl example.
i have used his example to display a triangle which can be rotated in a 3D space using the  up down left right  keys.
also added a button and a textbox, i have 2 question:
1- i can rotate the triangle by keys, until i click on the button to display some text in the textbox, why is this behaviour, and how i can restore the triangle rotating after clicking the button.
2- is it possible to make the opengl window smaller than the win32gui window !!
best wishes