Hi,

I am wondering how I may incorporate custom windows messages into an osg-based 
application that creates several windows using 
GraphicsContext::createGraphicsContext(). What I'm trying to do is, to 
implement multitouch capabilities, therefore I have to handle the native 
WM_TOUCH messages in the window procedure.

Since I noticed that the WindowProc function in GraphicsWindowWin32.cpp just 
calls the handleNativeWindowingEvent method of the according GraphicsContext 
instance, so my first idea was to create a class that derives from 
GraphicsWindowWin32 and overwrites this method. But there does not seem to be a 
possibility to trick the Win32WindowingSystem to use this class instead.

Of course, I could take care about class registration and window creation on my 
own, but I'd rather use the provided convenience functions. I also could do a 
hack in osg itself, as suggested in this thread 
(http://forum.openscenegraph.org/viewtopic.php?t=2271&highlight=), but I also 
would like to avoid that. Another way would be to install a windows message 
hook.

I would prefer to to this as sober as possible to avoid problems later on. Are 
there any best practices for handling windows messages in osg? Are you already 
providing an interface for that, which I was not able to find?

Thanks!

Cheers,
Jason.

------------------------
ithrak (Jason Fisher)

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26107#26107





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to