Вниз
Скачать: 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.038 c
14-1108057598
Franzy
2005-02-10 20:46
2005.03.06
Русификация Win2k eng - проблема


14-1108455916
Hawk2
2005-02-15 11:25
2005.03.06
ТВ-Тюнеры


14-1108573713
абитуриент
2005-02-16 20:08
2005.03.06
сочинение


9-1102404567
Opanas
2004-12-07 10:29
2005.03.06
[GLScene] &amp; 3DS


1-1109161925
Gost
2005-02-23 15:32
2005.03.06
Можна ли сделать так..




   Наверх