Вниз
Скачать: 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.042 c
1-1108756422
olookin
2005-02-18 22:53
2005.03.06
Вопрос про TShellTreeView


1-1109155988
Trajor
2005-02-23 13:53
2005.03.06
кодировки


14-1108452297
Vlad Oshin
2005-02-15 10:24
2005.03.06
Задача на составление примера


1-1108981611
Igorok
2005-02-21 13:26
2005.03.06
Конструктор форм


6-1104256698
ingine
2004-12-28 20:58
2005.03.06
TclientSocket




   Наверх