Skip to content
Diamond Sierra

CPBComponent::SetName

Calls PBSetComponent to change the szName field of the underlying PB_COMPONENT structure.

Updated · By Diamond Sierra

On this page

Class CPBComponent

VOID SetName(PCTSTR pszName)

VOID SetName(ULONG ulNameStringId, HINSTANCE hModule = NULL)

Remarks

Calls PBSetComponent to change the szName field of the underlying PB_COMPONENT structure.

Passing NULL (the default value) for the hModule parameter results in an attempt to load the string from the calling process. If the string table resides in a DLL, the parameter must be non-NULL.