Hi,
I want to show/hide my MFC Dialog from another class;

Main App : HomeWorkApp
Main Dlg : HomeWorkDlg

#include "HomeWorkDlg.h"
#include "HomeWorkApp.h"

CWorkUser::CWorkUser()
{
    // Initialize MFC Dialog here..
    // How ??
    MainDlg->ShowWindow(SW_SHOW);
}

CWorkUser::~CWorkUser()
{
    // Finalize MFC Dialog here..
}

Thanks..

It will largely depend on how the dialog class is set up. Show the code for that class.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.