Главная страница
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.029 c
14-1108483270
Dimedrol
2005-02-15 19:01
2005.03.06
DVD болванки eProformance


8-1100674381
11111
2004-11-17 09:53
2005.03.06
Какие параметры цвета (в системе RGB) стандартной формы?


14-1108018058
Kirill_21
2005-02-10 09:47
2005.03.06
DirectX 90c


8-1099908539
Змей
2004-11-08 13:08
2005.03.06
обратный Timer


14-1108307294
Flext@r
2005-02-13 18:08
2005.03.06
Подскажите, как сохранить интерне-страницу на хард!