Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.044 c
6-1142508826
antoxa2005
2006-03-16 14:33
2006.07.30
Подскажите, а как читать HTML страницу? Как текстовый файл много


2-1152764056
Rubey
2006-07-13 08:14
2006.07.30
Sirus


2-1151914701
D@Nger
2006-07-03 12:18
2006.07.30
Координаты ячейки DBGrida a


2-1152460652
17Landgraf
2006-07-09 19:57
2006.07.30
Как найти хендл


9-1132487732
Kobik
2005-11-20 14:55
2006.07.30
Большая картинка в DX




   Наверх