Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

taskbar icon disappears when loading second dialog

Status
Not open for further replies.

kunai

Programmer
Jun 4, 2004
52
CA
Hi,

I have a dialog based mfc application.

The first dialog shows up find with the taskbar "button/icon". But then it goes away when i hide the first and show the second dialog. i.e. my application is running but i don't see it on the taskbar.

Here the code i use on an OnOk button click:

CMenu menuDlg;
menuDlg.DoModal();

Also tried this:

CWnd *mainWnd = AfxGetMainWnd();
CDialog::OnCancel();
CMenu menuDlg;
mainWnd = &menuDlg;
menuDlg.DoModal();

Any ideas how to fix this please?

Thank You

 
In VS.Net, there's a property called "Application Window" that if you turn it into true, it will display an icon in the taskbar for it. I'm not sure what it is in VC6, but there should be something similar there.

BlackDice

 
found something for VC++6

ModifyStyleEx(0, WS_EX_APPWINDOW);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top