Вниз
Скачать: 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
3-1107417717
denis24
2005-02-03 11:01
2005.03.06
возврат пустых записей


1-1108996745
Victor!
2005-02-21 17:39
2005.03.06
Проблема с ScrollBox (прыгает туда сюда)


14-1108375786
Dimedrol
2005-02-14 13:09
2005.03.06
Windows XP, boot = чорный экран + мышь


4-1106328478
chum
2005-01-21 20:27
2005.03.06
Узнать права пользователя


1-1108740790
babayka
2005-02-18 18:33
2005.03.06
ошибка при подключении dll




   Наверх