How do I get a class from CFindReplaceDialog? (MFC)

Is it possible to get the settings dialog from CFindEditDialog? I want to create a dialog template in Viasual Studio Resource Builder (to draw it), then hide the default search dialog and use it instead.

MSDN says:

To customize the dialog, derive the class from CFindReplaceDialog, provide a custom dialog template, and add message cards to handle notification from the extended controls. Any unprocessed messages should be passed to the base class.

Hook function setup is not required

Anyone have any experience?

0


source to share


1 answer


While I have no direct experience with this (but close others), it is quite possible and should be easy. Most of the posts will be implemented in practice, so you need to override the ones that interest you with the added code.



The project code is artistic, which speaks of CFindEdit. This might be useful http://www.codeproject.com/KB/cpp/Media_PlayerByyazan_nemer.aspx If you look at the oninitialize event for your dialogs, you should see how events are handled in inherited classes.

0


source







All Articles