LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can a HWND style handle (Microsoft API) from a parent window be converted to a handle that can be used in LoadPanel(...) ?

I want to open a modal dialog box with LoadPanel inside a DLL. This DLL is called from within another application. I only have the HWND of the parent window.
0 Kudos
Message 1 of 2
(3,007 Views)
Hello

There isn't a single function that would do this for you. If all you need to do is set the panel from the dll as a child to the main panel (the main panel belonging to the application calling the dll), you can get the HWND of the child window using the Windows SDK function FindWindow(), and then use the SetParent() function to set the child window accordingly.
Refer to the MSDN @ http://msdn.microsoft.com/default.aspx from more information about the SDK functions

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,007 Views)