C# How to disable the right-click menu about embedded applications and Focus embedded app's textbox?
- by liqingChen
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);