Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.03.06;
Скачать: 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 вся ветка

Текущий архив: 2005.03.06;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.056 c
14-1108377909
}|{yk
2005-02-14 13:45
2005.03.06
Здоровеньки булы! И что тут без меня творилось? :)


1-1108993644
GanibalLector
2005-02-21 16:47
2005.03.06
List index out of bounds(1)


14-1108047454
Новенький
2005-02-10 17:57
2005.03.06
Помогите с установкой ХР


1-1108585953
Арбузов
2005-02-16 23:32
2005.03.06
Нужен наглядный пример создания формы в рантайме


1-1109008417
ТехникПТО
2005-02-21 20:53
2005.03.06
Real в String