SECTrayIcon::AddState

Add a tray icon state.
This function is used to add a new state to the tray icon. A tray icon state contains 1 icon, tooltip, and time interval value to be utilized whenever the state is swapped via SetState, or when an animation is in progress via the Play function.

Defined in: TrayIcon.cpp

Syntax

AddState(DWORD nState, UINT nIconID, const CString& sTip, UINT nJiffy)

AddState(DWORD nState, LPCTSTR szIconID, const CString& sTip, UINT nJiffy)

AddState(DWORD nState, HICON hIcon, const CString& sTip, UINT nJiffy);

Return Value

void

Parameters

nState

new state to add. Must be a unique id value to differentiate between alternate states.

nIconID

icon resource id

szIconID

icon resource string

hIcon

handle to icon

sTip

tooltip text

nJiffy

delay between animation frames (ms = nJiffy * 17)

See Also

SetState

Play

SECTrayIcon