The button wizard puts the form window on top

First, get scratched with a custom interface window handle
to be careful that need to be topped debugging open window and then open scratched
if you first need to open scratching and scratching at the window open to refresh
find the form 2 (I Here is the added form2)
Insert picture description here
and copy the title and class name

Hwnd = Plugin.Window.Find("Afx:00400000:3:00010003:01900010:00000000","窗体2")
Call Plugin.Window.Top(HWnd,0)

The button wizard to cancel the window bai is set as follows: du

//Mode: 0=preset, 1=cancel preform.

//The following sentence is the window property zhi is set to the front of the dao window.

Call Plugin.Window.Top(Hwnd, 0)。

MsgBox "The current window is brought to the front".

Call Plugin.Window.Top(Hwnd, 1)。

MsgBox "Cancel the current window to the front".

Guess you like

Origin blog.csdn.net/weixin_40938312/article/details/107916023