Вниз
Скачать: 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.042 c
3-1148770554
Кашперук Иван
2006-05-28 02:55
2006.07.30
BDE Administrator и PARADOX


2-1152254350
Darkwing
2006-07-07 10:39
2006.07.30
правильное сохранение размеров окна


3-1148656387
SergeyGalat
2006-05-26 19:13
2006.07.30
Ошибка Table is Busy


15-1151572526
Жук
2006-06-29 13:15
2006.07.30
"Русский шоколад" в Иваново


2-1152270164
RomanH
2006-07-07 15:02
2006.07.30
Таблица в Oracle




   Наверх