My WinForm dialog is attached to a 3rd party window (SolidWorks) via a call to SetParent
(p/invoke). My dialog is in the 3rd parties process as an add-in.
When my user has given my dialog/widget focus by clicking on it, if they then press Ctrl+Tab to switch views in the parent application, my dialog receives the key stroke sequence - I can see this by overriding ProcessCmdKey
. The command is not passed to the parent window, and hence does nothing.
How can I pass this key sequence to the parent HWND?
It's not just Ctrl+Tab I need to forward, it's all key's including Alt+F4, F1, etc. etc.
C#
tag and replacing it withwindows
andwinapi
tags. – David Heffernan