Click to See Complete Forum and Search --> : System Tray Again


pebbles
September 8th, 1999, 10:34 AM
OK OK OK.. I know what you are thinking - when will the Tray stuff end.

I am probably stupid, but, I can get the tray Icon alright, and the mouse capture stuff works great - THANK-YOU!...

Here is the question. I have a dialog based app generated with the MFC wizard, How do I get it to NOT put up a Task Bar item? The extended style "Tool Dialog" doesn't work, probably because the dialog was created with a parent.

Thanks.

Vadim Ridosh
September 8th, 1999, 10:40 AM
You must set WS_EX_TOOLWINDOW and CLEAR WS_EX_APPWINDOW extended window styles.

pebbles
September 8th, 1999, 11:08 AM
Ok, I am with you... I tried this and it dumped on me. Where/When should I change the window styles? In the Dialog class, in the parent class?

Thanks!

Vadim Ridosh
September 8th, 1999, 11:26 AM
Yo must add this code to OnInitDialog() function after CDialog::OnInitDialog():

ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW, 0);