C# How to disable the right-click menu about embedded applications and Focus embedded app's textbox?
Posted
by
liqingChen
on Stack Overflow
See other posts from Stack Overflow
or by liqingChen
Published on 2013-10-23T09:31:41Z
Indexed on
2013/10/23
9:54 UTC
Read the original article
Hit count: 156
I used such API to embed other app in my control.
SetParent(app.MainWindowHandle, control.Handle);
SetWindowLong(new HandleRef(this, app.MainWindowHandle), GWL_STYLE, (WS_VISIBLE | WS_CHILD) & ~WS_BORDER);
MoveWindow(app.MainWindowHandle, 0, 0, control.Width, control.Height, true);
1?How to diaable the right-click menu about embeded app?
2?Used such API, I can click anyButton in embed APP,But cant focus other APP to input text.
Change SetWindowLong param like this,can ipnut text ,but embed app's menubar will exist.
SetWindowLong(new HandleRef(this, app.MainWindowHandle), GWL_STYLE, WS_VISIBLE & ~WS_BORDER);
© Stack Overflow or respective owner