Languages

Menu
Sites
Language
Update Label

Hi,

On my form, I have five Labels for text and another one for a bitmap. Each twenty seconds, I update labels like that __pLabel->SetText(str) or __pLabel->SetBackgroundBitmap(*pBitmap) and after __pLabel->RequestReadraw(false). But with this solution, I have some memory leak.

May be it will be better to use another control like Canvas for the Bitmap and EnrichedText (refresh).

What do you think?

Responses

1 Replies
kimi

Hi,

Try __pLabel->Draw() and __pLabel->Show or just __pLabel->Invalidate(true)

 

Kimi.