CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 1999
    Location
    Connecticut
    Posts
    29

    System Tray Again

    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.


  2. #2
    Join Date
    Jul 1999
    Location
    Ukraine
    Posts
    8

    Re: System Tray Again

    You must set WS_EX_TOOLWINDOW and CLEAR WS_EX_APPWINDOW extended window styles.


  3. #3
    Join Date
    Sep 1999
    Location
    Connecticut
    Posts
    29

    Re: System Tray Again

    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!


  4. #4
    Join Date
    Jul 1999
    Location
    Ukraine
    Posts
    8

    Re: System Tray Again

    Yo must add this code to OnInitDialog() function after CDialog::OnInitDialog():

    ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW, 0);




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured