From: Peter Krueger (pkrueger++at++appss.de)
Date: 03/22/2004 09:03:08
Hello Performers,
I'm currently trying to embed a pfPipeWindow in a GTK+2 user interface.
Under Unix / Linux I did it as follows:
_pPfPWin->setWSWindow(GDK_DISPLAY(),
GDK_WINDOW_XWINDOW(_p3DView->window));
_pPfPWin->setWSDrawable(GDK_DISPLAY(),
GDK_WINDOW_XWINDOW(_p3DView->window));
Now I try the same under WIN32:
_pPfPWin->setWSWindow(GDK_DISPLAY(),
GDK_WINDOW_HWND(_p3DView->window));
_pPfPWin->setWSDrawable(GDK_DISPLAY(),
GDK_WINDOW_HWND(_p3DView->window));
This doesn't work because the HGDIOBJ that comes from GDK_WINDOW_HWND()
is not compatible with the pfWSWindow which is needed in setWSWindow().
I found out that the pfWSWindow is a HANDLE. But I don't know how to get
the HANDLE from my GdkWindow.
I tried to explicitely cast to a pfWSWindow, but this resulted in the
following runtime warnings:
PF Print(7): Handle pbuffer detection in setWSDrawable
PF Warning/Usage(7): pfWindow::setWndClassName has no effect if
called after opening a window
PF Warning: Could not set pixel format 6
And it didn't refresh my OpenGL capable widget (_p3DView).
Can anybody help me please?
I'm working on Windows 2000, OpenGL Performer 3.1, and GTK+ 2.2.4.
Thanks,
Peter
-- ==================================================================== Peter Krügerapplied software solutions (appss) GmbH Sandtorstr. 23 D-39106 Magdeburg Germany
Phone: +49-(0)391-54486-19388 Fax: +49-(0)391-54486-19222 email: krueger++at++appss.de URL: http://www.appss.de
Managing Director: Uwe Hess, Dietmar Schäfer Register: HRB12386, AG Mageburg
"Virtual business becomes reality!"
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ====================================================================
This archive was generated by hypermail 2b29 : Mon Mar 22 2004 - 09:05:46 PST