Share

CAdUiBitmapButton::OnReload

C++

BOOL OnReload(
    LPCTSTR strResId
) override;

Description

This routine is called to refresh or alter the bitmap image, obtained from a resource. The member is declared virtual for use by derived classes. The default handler calls LoadBitmap() passing strResId as a parameter. If successful then if auto-sizing is enabled SizeToBitmap() is called, then the inherited OnReload() is invoked. The function returns TRUE on success and FALSE otherwise.

Parameters

Parameters Description
strResId Input resource ID of the bitmap to load

Links

CAdUiBitmapButton Class

Was this information helpful?