![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Как свернуть все окна??? [D6, Win95/98]
SuperIgor © (2002-03-19 05:10:00)Вопрос может и не сложный но всё таки Как свернуть все окна???
Заранее Thanks!!!
Raptor (2002-03-20 19:18:00) [1]Любая кнопка есть ничто иное как окнокласса BUTTON.
Любой контрол в винде - окно.
copyr25 (2002-03-20 18:20:00) [2]Diamond Cat:
Вот, только кнопку "ПУСК" broadcast не трогает.
А она хоть и BUTTON, но может менять размеры
под SetWindowPos. Т.е., вроде, как кнопка, вроде -
как окно:)))
До сих пор не пойму. Was ist das? :)))
copyr25 (2002-03-20 17:57:00) [3]Конечно, Broadcast закрывает и видимые, и невидимые, и дочерние,
и с заголовком, и без оного, и все прочее.
Одно дело, прочитать об этом в хэлпе - другое увидеть, как это выглядит
на самом деле:))
copyr25 (2002-03-20 17:31:00) [4]А за что лупить!? Классный пример:))
Во-первых, в трее скроллбар появляется, во-вторых окно
этого загадочного "Индикатора зарядки батарей".
Вообщем, класс!!
:))
Dimaond Cat (2002-03-19 23:19:00) [5]если реально все окна (ну тоесть абсолютно все) то попробуй
postmessage(hwnd_broadcast, wm_syscommand, sc_minimize,0);
только чур меня ногами не лупить, но шутка веселая
copyr25 (2002-03-19 17:52:00) [6]end;
:))
copyr25 (2002-03-19 17:48:00) [7]procedure TForm1.Button1Click(Sender: TObject);
var h:HWnd;
begin
h:=handle;
while h > 0 do begin
if isWindowVisible(h) then
postmessage(h,WM_SYSCOMMAND,SC_MINIMIZE,0);
h:=getnextwindow(h,GW_HWNDNEXT);
end;
Song (2002-03-19 08:27:00) [8]http://delphi.vitpc.com/helloworld/wininf01.htm#_8
MZ____ (2002-03-19 07:34:00) [9]HWND FindWindow(
LPCTSTR lpClassName, // pointer to class name
LPCTSTR lpWindowName // pointer to window name
Parameters
lpClassName
Points to a null-terminated string that specifies the class name or is an atom that identifies the class-name string. If this parameter is an atom, it must be a global atom created by a previous call to the GlobalAddAtom function. The atom, a 16-bit value, must be placed in the low-order word of lpClassName; the high-order word must be zero.
lpWindowName
Points to a null-terminated string that specifies the window name (the window"s title). If this parameter is NULL, all window names match.);
BOOL ShowWindow(
HWND hWnd, // handle of window
int nCmdShow // show state of window
);
nCmdShow
SW_HIDE Hides the window and activates another window.
SW_MAXIMIZE Maximizes the specified window.
SW_MINIMIZE Minimizes the specified window and activates the next top-level window in the Z order.
читай Win32 programmers reference