Hi everybody,
We have an external Delphi dll where we would like to find the handle of the MicroStation Window with "FindWindow" (function from the Windows API).
So we need to know the name of the MicroStation Window.
Can someone give me this name?
Also is there an other way to get the handle of Microstation (not the handle of a view)?
Thanks for your help,
Hervé
You can use the mdl function mdlNativeWindow_getMainHandle(0) to get the window handle. If the user has multiple microstation screens setup, you would have a different handle per screen.
Gets the HWND of MicroStation's main window.
Ok but I need to get the handle in a Dll developped in Delphi Rio. So I need to use the function from the Window API : "FindWindow"
Herve Cuzon said:we need to know the name of the MicroStation Window
Use a Windows tool, such as ProcMon, to see process and Windows information.
Regards, Jon Summers LA Solutions
To get the Microstation Main Window Handle in Delphi : HandleMSTN := FindWindowEx(0,0,'MstnTop',nil);