wpf - WinAPI Copy System Menu to new Window -
i docking application's window inside of wpf window using hwndhost. this, have set ws_child style attribute of window docking , lose system menu of window not acceptable. using hwndhost there no way around since throw exceptions if attribute not set.
my question is;
since application doesn't use system menu, there way directly copy system menu of docked application app's window? winapi menu functions i'm aware of require me build menus scratch , don't know how hook menu hosted application.
i'm not sure if matters, 2 windows within same process. application plugin of application window docking.
use getsystemmenu
hmenu
system menu given window. should able cross-reference own window's system menu docked application's system menu, copy across own window doesn't have, , forward them on handling , forwarding relevant wm_syscommand
messages. or maybe copy whole system menu , forward of them on.
this require bit of trial , error make work (especially if docked application isn't expecting used way...) above might things started.
Comments
Post a Comment