Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.07.30;
Скачать: CL | DM;

Вниз

Иконка дочернего mdi окна   Найти похожие ветки 

 
Квэнди ©   (2006-06-15 15:13) [0]

Здравствуйте. Подскажите пожалуйста каким образом можно извлечь иконку дочернего mdi окна ?


 
Игорь Шевченко ©   (2006-06-15 15:17) [1]

var
 Icon: TIcon;
 IconHandle: THandle;
begin
.....
 IconHandle := GetClassLong(AWindowHandle, GCL_HICONSM);
 if IconHandle = 0 then
   IconHandle := GetClassLong(AWindowHandle, GCL_HICON);
 if IconHandle = 0 then
   IconHandle := SendMessage(AWindowHandle, WM_GETICON, ICON_SMALL, 0);
 if IconHandle = 0 then
   Iconhandle := SendMessage(AWindowHandle, WM_GETICON, ICON_BIG, 0);
 if IconHandle = 0 then
   IconHandle := Application.Icon.Handle;
 if IconHandle <> 0 then begin
   Icon := TIcon.Create;
   Icon.Handle := IconHandle;
   try
     DrawIconEx(AButton.Glyph.Canvas.Handle, 0, 0, Icon.Handle,
          AButton.Glyph.Width, AButton.Glyph.Height, 0, 0, DI_NORMAL);
   finally
     Icon.ReleaseHandle;
     Icon.Free;
   end;
 end;
...
end;



Страницы: 1 вся ветка

Текущий архив: 2006.07.30;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.051 c
1-1150315952
AlexeyT
2006-06-15 00:12
2006.07.30
Как определить доступность WMP ActiveX?


2-1152159695
TaSk
2006-07-06 08:21
2006.07.30
Музыка


1-1150445348
Уля
2006-06-16 12:09
2006.07.30
создание Excel-документа с помощью Delphi


2-1152181495
dommin
2006-07-06 14:24
2006.07.30
Сворачивание программ в трей


2-1152535365
zdm
2006-07-10 16:42
2006.07.30
FREE