none
add a dialog

    Question

  • i am using VS 2015
    and try to develop an application with a basic dialog from where i start a modal 2. dialog.
    so i chose in the resource view INSERT DIALOG
    the new dialog is shown. i add a class for that dialog and get a cpp-file with no OnInitDialog. where to put it in the

    .h-file

    please help

    Manfred

    Monday, March 20, 2017 2:41 PM

All replies

  • Right-click on the dialog in the editor, and from the resulting pop-up select Class Wizard.

    In the Class Wizard, go to the Virtual Functions tab, select OnInitDialog from the list box on the left, then hit the Add Function Button.

    Tuesday, March 21, 2017 12:34 AM