Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Is there an equivalent of win32 API "SendMessage" in U++
Is there an equivalent of win32 API "SendMessage" in U++ [message #11132] Tue, 21 August 2007 16:57 Go to next message
bitsun is currently offline  bitsun
Messages: 12
Registered: March 2007
Location: Germany
Promising Member
currently I am trying to draw sth in U++ window with VTK. It seems that I have some progress already.

I came across such problem, I already have a windows handle (hwnd)of a vtk render window, and I want to send some message to this vtk render window. I know that in win32 API, there is a function:
SendMessage(hwnd,message,wParam,lParam),
which can accomplish this task. But this is only a solution in windows. However I hope I can find a cross-platform solution. So I am wondering ,is there any equivalent of SendMessage, in U++.
any hints are appriecated !

thanks in advance
Re: Is there an equivalent of win32 API "SendMessage" in U++ [message #11136 is a reply to message #11132] Tue, 21 August 2007 22:34 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Not sure I understand. If hwnd is all you have to "contact" VTK, then you probably should not care about crossplatform at this level?
Re: Is there an equivalent of win32 API "SendMessage" in U++ [message #11143 is a reply to message #11136] Wed, 22 August 2007 12:47 Go to previous messageGo to next message
bitsun is currently offline  bitsun
Messages: 12
Registered: March 2007
Location: Germany
Promising Member
You mean this level is too low?
Here the window handle is of type void* ,it can be obtained by vtkRenderWindow's method,so it is not neccessarily a win32 windows handle.
Re: Is there an equivalent of win32 API "SendMessage" in U++ [message #11172 is a reply to message #11143] Sat, 25 August 2007 14:12 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
What I mean that IMO this depends on VTK rather than on U++....

Anyway, U++ standard mechanism of passing widget events is Callback. However, this is C++, you always have all of your platfrom API at your disposal.
Previous Topic: What way is best to implement Callback for GotFocus/LostFocus?
Next Topic: ButtonOption has no disabled state? [solved w/ ::Disable()]
Goto Forum:
  


Current Time: Thu May 02 20:18:08 CEST 2024

Total time taken to generate the page: 0.06489 seconds