A Journey 2 Eternity

DestroyWindow must be called for tooltips in the OnDestroy Message Handler of the Dialog

Posted on: December 1, 2008

It seems, there is an internal Windows Mechanizm which turns off the WS_CHILDWINDOW style even if it is set for the tooltip control (Traced by SPY). Therefore it is evident, the tooltip control is not treated like a normal child window of a dialog and it doesn’t get destroyed when the Dialog is destroyed.

Therefore, DestroyWindow must be called for tooltips in the OnDestroy Message Handler of the Dialog.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Pages

Categories

December 2008
M T W T F S S
« Sep   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  

Blog Stats

  • 26,968 hits
%d bloggers like this: