Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Why icons are not set automatically by MFC framework for Dialog based

jain_vipin_swmjain_vipin_swm Member Posts: 1
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


Sign In or Register to comment.