Share

AcApStatusBar::Add

C++

virtual int Add(
    AcTrayItem* pTrayItem, 
    BOOL bUpdate = TRUE
) = 0;

Description

This function adds a new tray item to the status bar tray icon area.

On success, this function returns the index position of the newly added tray item; on failure, it returns -1.

To prevent screen flicker when adding multiple tray items, set bUpdate to false. When you are finished adding tray items, call AcApStatusBar::Update() to update the display.

Parameters

Parameters Description
pTrayItem Input pointer to the tray item object to add
bUpdate Input Boolean: true to make the status bar display this tray item immediately; false if the tray item should not be displayed until the next call to AcApStatusBar::Update()

Links

AcApStatusBar

Was this information helpful?