Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.11.28;
Скачать: CL | DM;

Вниз

Не перерисовывается PaintBox   Найти похожие ветки 

 
mmb1   (2002-11-15 19:50) [0]

Вызываю
InvalidateRect(PaintBox1.Canvas.Handle, NULL, TRUE);
а не перерисовывается. Что не так вызываю ?


 
reonid ©   (2002-11-15 20:48) [1]

А Rect то где?

var R: TRect;
R := PaintBox1.ClientRect;
InvalidateRect(PaintBox1.Canvas.Handle, @R, TRUE);

(или просто PaintBox1.Invalidate)


 
mmb ©   (2002-11-16 09:14) [2]

Описание:
procedure InvalidateRect(Wnd: HWnd; Rect: LPRect; Erase: Bool);

Rect: TRect (в кооpдинатах пользователя), добаляемая к области обновления или NULL для всей области пользователя.


 
MBo ©   (2002-11-16 09:58) [3]

The invalidated areas accumulate in the update region until the region is processed when the next WM_PAINT message occurs


 
apay ©   (2002-11-16 10:14) [4]

читать внимательней надо:

procedure InvalidateRect( Wnd: HWnd; Rect: LPRect; Erase: LongBool);
^^^^^^^^^^
var Rc: TRect;
...
Rc := PaintBox.BoundsRect;
InvalidateRect( PaintBox.Parent.Handle, @Rc, True );

процедуре должен передаваться ХЕНДЛ ОКНА!


 
mmb ©   (2002-11-16 11:30) [5]

но тогда и Rc должно быть
Rc := PaintBox.Parent.BoundsRect;



Страницы: 1 вся ветка

Текущий архив: 2002.11.28;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.012 c
3-92867
s_karm
2002-11-08 16:18
2002.11.28
combobox


4-93282
sas1
2002-10-15 11:18
2002.11.28
кнопки


3-92924
GAlexis
2002-11-11 16:49
2002.11.28
Как выгрузить данные в MS Word


14-93244
Fantasist
2002-11-10 23:55
2002.11.28
Админам!


1-93066
NikolaB
2002-11-15 19:38
2002.11.28
Pomogite,pls!Kak mojno vipolnit virtual metod dalnego roditelia?