CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Location
    Croatia - Zagreb
    Posts
    459

    Hiding application window from taskbar.

    Hi.

    I have a MFC dialog application (with no frame) witch is used in another application via CreateProcess.
    The trouble is that I need to create multiple instances of that dialog application executed with different setup.
    But for every instance of dialog, I see no-caption (only mfc icon indicating open window) in task bar.
    And I need to remove that. (i.e. only thing that must be visible in taskbar is master app)
    Do I need to call CreateProcess with some different parameters or do I need to compile MFC dialog somehow?

    Thanks.
    You just divided by zero, didn't you?

  2. #2
    Join Date
    Feb 2006
    Location
    Croatia - Zagreb
    Posts
    459

    Re: Hiding application window from taskbar.

    never mind i figured it out.

    Code:
        HWND f = this->GetSafeHwnd();
        DWORD w = this->GetExStyle();
        SetWindowLong(f, GWL_EXSTYLE, w | WS_EX_TOOLWINDOW);
    And properties of the dialog must be set like this:
    Border: None
    Tool Window: False
    Topmost: True
    Application Window: False
    You just divided by zero, didn't you?

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