ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call MessageBox() in LV

Hello,

I want to use Windows API "messageBox()" instead of LV's dialog box by calling the DLL, but how to specify the first parameter of the function :HWND ? How to set the ICON's parameter ?

David
0 Kudos
Message 1 of 5
(3,280 Views)

What version of LV do you use?

I could post you a llb where I call this function for LV7.0.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 5
(3,275 Views)

Why don't you try this?

 
Also, note that at the top of the page you can see the hierarchy of pages where you can find a lot more information on calling DLLs.

___________________
Try to take over the world!
Message 3 of 5
(3,274 Views)
But how to specify the owner window ? I want to make a model dialog .
0 Kudos
Message 4 of 5
(3,256 Views)

Try this...

The second call library node calls "FindWindowA", which is also located in user32.dll.

Hope it helps.

Thomas

Message Edited by becktho on 02-01-2006 07:11 AM

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 5 of 5
(3,252 Views)