Вниз
Скачать: 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.022 c
1-1108583165
pasha L
2005-02-16 22:46
2005.03.06
перечисление элементов массива


3-1107361035
Ovant
2005-02-02 19:17
2005.03.06
Обработка ошибок Delphi


14-1108280948
Сергей Суровцев
2005-02-13 10:49
2005.03.06
Минус на минус дает Большой минус!


14-1108151528
Fin
2005-02-11 22:52
2005.03.06
Две звуковые карты.


11-1089554522
Андрей
2004-07-11 18:02
2005.03.06
ToolBar - Решение странной проблемы




   Наверх