I have a app with a tab control and associated tab dialogs. I'm subclassing several controls to the same sub class procedure primarily to have the controls change colors when the mouse is over them.
If in my code I click a row in a list view on one of the tabbed dialogs it will create a detail screen with buttons that use the subclass. If I exit this detail dialog by clicking the X (close box) and return to the calling tab the subclass functionality remains intact. If I exit the detail screen using a button that simply does a DIALOG END CBHNDL, the hover effect is disabled as if it is no longer subclassed.
I'm making sure that I kill the sub class in the WM_DESTROY event of the Detail screen for the specific controls that were subclassed when the detail dialog was created.
So is there any difference between using the close box(X) and DIALOG END CBHNDL that might account for this?
How can I exactly kill the detail screen like the Close Box (X) does?
BOB MECHLER
If in my code I click a row in a list view on one of the tabbed dialogs it will create a detail screen with buttons that use the subclass. If I exit this detail dialog by clicking the X (close box) and return to the calling tab the subclass functionality remains intact. If I exit the detail screen using a button that simply does a DIALOG END CBHNDL, the hover effect is disabled as if it is no longer subclassed.
I'm making sure that I kill the sub class in the WM_DESTROY event of the Detail screen for the specific controls that were subclassed when the detail dialog was created.
So is there any difference between using the close box(X) and DIALOG END CBHNDL that might account for this?
How can I exactly kill the detail screen like the Close Box (X) does?
BOB MECHLER
Comment