|
-
December 6th, 2008, 04:07 AM
#1
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?
-
December 6th, 2008, 06:40 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|