Вниз
Скачать: 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.026 c
15-1151572303
Ketmar
2006-06-29 13:11
2006.07.30
SMDR: opensource %-)


2-1152181187
Quattro
2006-07-06 14:19
2006.07.30
Ширина символа


2-1152634378
AlonZo
2006-07-11 20:12
2006.07.30
Занесение системной даты в Edit


1-1150371628
Billis
2006-06-15 15:40
2006.07.30
Как из Thread обращ. к объектам на активной MDI-дочерней форме?


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




   Наверх