IASPowerListBox::AddItemsFromResource

This method loads items from a menu resource file.

Syntax

HRESULT AddItemsFromResource ( HINSTANCE hinst, PCWSTR pszMenuName, DWORD dwMenuState );

Parameters

hinst
Handle to an instance.
pszMenuName
Pointer to the null-terminated string that contains the menu name.
dwMenuState
Specifies the state of the menu.

Return Values

An appropriate HRESULT value is returned.

Remarks

This function is additive and can be executed more than once to load multiple items.