Outlook is in a separate process… NativeWindow only works across the current process and window handles that are contained in it. What would be needed in this case is a system wide hook, that requires use of the Win32API and interop.
I reckon this is overkill just to save a bit of development pain, so will probably move to something where the Outlook addin dynamically loads the panel in and make something available to have the add-in reload the panel — this should allow me to develop the panel code the majority of the app without worrying to much about the Outlook addin side of things.
Note — this does not cover a number of aspects around releasing handles etc — you will want to make sure these are covered off…. GEO Username or Email Address. It is passed to the subclass callback in unmodified way. It could be an object pointer to a class instance for example. Previous Next. This website is not affiliated with Stack Overflow.
User specified ID to identify the subclass, together with the subclass procedure uniquely identifies a subclass. The following call to the SetWindowLongA function subclasses the current window procedure associated with the window identified by the hWnd parameter. The new window procedure NewWndProc , will receive messages with text in Windows code page format. Message translation, if necessary, is performed during the processing of the CallWindowProc function.
For more information about subclassing, see Window Procedures. Using Unicode and Character Sets.
0コメント