WinForm lock other application inside form

后端 未结 1 1225
南方客
南方客 2021-01-24 15:22

Sorry if this was asked before or if this is stupid.
I am making an application for security staff (night guards) to make his nights more interesting, Ill love to try embed

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-24 15:55

    It is explicitly forbidden by the SDK docs, but some appcompat hacks for Windows 3.x apps can make it possible. Ab/used by several 32-bit programs as well, Acrobat Reader for one.

    P/Invoke SetParent(), you'll need the window handle of the app's main window. Process.MainWindowHandle() with some luck. MoveWindow to put it in the right place. Use pinvoke.net for the declarations you'll need. The fact that this app displays video doesn't improve the odds that this will work out.

    0 讨论(0)
提交回复
热议问题