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.
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