I am facing a problem where MFC framework is not setting the icon automatically for the dialog based application. I embedded the icon resource file in the application, but icons are not shown for the app in taks manager and task bar.
I see comments in MSDN examples that the framework does this automatically when the application's main window is not a dialog, but for dialog based application we have to call SetIcon explicitly. Any help would be appreciated if you could explain me the reason behind it.
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon