Re:OpenGL rendering surface
On Wed, 29 Sep 1999 16:17:26 -0600, "Gary Hanks" <g...@deepseainc.com>
wrote:
Quote
>I have been trying to create an OpenGL rendering surface in a
>TCustomControl, with very little success. Everything works, until the form
>that contains the CustomControl is resized, moved or painted, then things go
>bad. The same code when the rendering surface is assigned to a form works
>perfectly. Is it possible to create an OpenGL surface in a windowed
>control?
Yes, it's possible. I declared my own TWinControl descendant that
mostly works. I don't remember all the details, and can't share code,
but it responds to the following messages:
wm_paint
wm_destroy
cm_fontchanged
It also overrides the following methods:
setbounds
setparent
Duncan Murdoch