Вниз
Скачать: CL | DM;

Зачем Refresh и Repaint, если одго и то же?   Найти похожие ветки 

← →
Коля   (2005-02-23 22:36) [0]

Нашёл вот такое в Controls.pas

procedure TControl.Refresh;
begin
 Repaint;
end;

procedure TControl.Repaint;
var
 DC: HDC;
begin
 if (Visible or (csDesigning in ComponentState) and
   not (csNoDesignVisible in ControlStyle)) and (Parent <> nil) and
   Parent.HandleAllocated then
   if csOpaque in ControlStyle then
   begin
     DC := GetDC(Parent.Handle);
     try
       IntersectClipRect(DC, Left, Top, Left + Width, Top + Height);
       Parent.PaintControls(DC, Self);
     finally
       ReleaseDC(Parent.Handle, DC);
     end;
   end else
   begin
     Invalidate;
     Update;
   end;
end;
Вопрос: А зачем нужен Refresh?


← →
Palladin ©   (2005-02-23 22:40) [1]

Пережиток прошлого...



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

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



Память: 0.44 MB
Время: 0.035 c
8-1100782633
balcon
2004-11-18 15:57
2005.03.06
ширвание звука


4-1106432957
i-s-v
2005-01-23 01:29
2005.03.06
Как вывести HBITMAP на HDC


4-1106651856
Unknown
2005-01-25 14:17
2005.03.06
Email


14-1108104276
Steepe Wolf
2005-02-11 09:44
2005.03.06
MX6E040L0, 7200 об, U-DMA133 Установка WinXP


14-1108127746
DSmale
2005-02-11 16:15
2005.03.06
StyleXP




   Наверх