P
Peter Wone
The short version is that when the theme is changed my application barfs.
The problem is a control I've created to host the WebBrowser control and
implement all the com callbacks for browser customisation. The problem only
occurs when it's present.
I'll fix it, but first I need detailed info on exactly what happens to a
winform when the theme changes. It seems to me that the native window would
have to be recreated to pick up the new window style, and there are
undoubtedly various messages flying around that my control ought to respond
to.
Obviously I want to handle this in my control rather than on the form. Other
controls get re-themed, so obviously they get notified somehow and I ought
to be handling this notification... I don't suppose there's an OnThemeChange
or OnRecreateNativeWindow event...?
And having detected the change, what are the responsibilities of a control
at this point?
The problem is a control I've created to host the WebBrowser control and
implement all the com callbacks for browser customisation. The problem only
occurs when it's present.
I'll fix it, but first I need detailed info on exactly what happens to a
winform when the theme changes. It seems to me that the native window would
have to be recreated to pick up the new window style, and there are
undoubtedly various messages flying around that my control ought to respond
to.
Obviously I want to handle this in my control rather than on the form. Other
controls get re-themed, so obviously they get notified somehow and I ought
to be handling this notification... I don't suppose there's an OnThemeChange
or OnRecreateNativeWindow event...?
And having detected the change, what are the responsibilities of a control
at this point?