Вниз
Скачать: 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
1-1108727530
Луарвик
2005-02-18 14:52
2005.03.06
Помогите алгоритм составить!


1-1108562683
Checist [root]
2005-02-16 17:04
2005.03.06
Расширить TComboBox


3-1107148450
Garry_c
2005-01-31 08:14
2005.03.06
Активизация триггеров в IB


1-1108589271
ninja
2005-02-17 00:27
2005.03.06
Ввод функций


1-1108728732
Cosinus
2005-02-18 15:12
2005.03.06
Обращение к объектам, расположенным на MDIChild из MdiMain




   Наверх