CFindDialogImpl::OnFinalMessage

virtual voidCFindDialogImpl::OnFinalMessage(HWNDhWnd)

Perform any cleanup here

Defined in: CommonDialogs.h

Parameters

hWnd

Window handle receiving the final message

Comments

Most of the time Find Dialogs are created on the heap and destroy themselves on the final message. If you decide to put the dialog box on the stack, be sure to override this function (the default version delete the object this pointer, which as you know results in painful consequences.