Вниз
Скачать: 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.023 c
14-1108018058
Kirill_21
2005-02-10 09:47
2005.03.06
DirectX 90c


3-1107397581
ordik
2005-02-03 05:26
2005.03.06
Можно ли создавать таблицы в .mdb динамически?


1-1108652887
Георгий Бедный
2005-02-17 18:08
2005.03.06
Легенда о калькуляторе


14-1108231106
hamster
2005-02-12 20:58
2005.03.06
Kaspersky


1-1108672612
Yegorchic
2005-02-17 23:36
2005.03.06
Что такое с ReadLn?




   Наверх