· Начало · Отвђтить · Статистика · Поиск · FAQ · Правила · Установки · Язык · Выход · WASM.RU · Noir.Ru ·

 WASM Phorum —› WASM.WIN32 —› Кнопка в TaskBar

Посл.отвђт Сообщенiе


Дата: Авг 4, 2004 16:18:07

Здравствуйте!!!
Кто знает как можно сделать так чтоб окно было видно, а кнопка в TaskBar'е не отображалась?
Как при вызове "invoke ShowWindow,hwnd,SW_HIDE", кнопка исчезает, но и окно тоже, а мне нужно чтоб только кнопка исчезла.


Дата: Авг 4, 2004 16:40:05

Q> Как сделать чтобы окошко не появлялось на таскбаре?
A>


There is more than one way to stop a window appearing on the taskbar.


Rather than WS_EX_APPWINDOW, give your window the WS_EX_TOOLWINDOW extended
style. Since toolbars don't appear on the taskbar, this will prevent it
appearing there. Unfortunately, this has some rather negative repercussions
on the appearance of your window : it gets a thin caption with smaller title,
and loses its system menu. This is not acceptable to many people.


Windows owned by an invisible window won't appear on the taskbar. "Great",
say you, "but my app is dialog based, so what now Mr Smarty ?". Well, you can
either recast your dialog app as an SDI with a hidden main window, and have
that main window shown at startup, or you can create your own hidden window
and set that as your dialogs owner.


Дата: Авг 4, 2004 19:06:29

thanks


Powered by miniBB 1.6 © 2001-2002
Время загрузки страницы (сек.): 0.058