The following sample code shows how to set the object data for the object with an ID of WP_SAMPLE, to have the specified title and use the specified help panel:
HOBJECT hObj;
BOOL rc;
{
hobj = WinQueryObject( "<WP_SAMPLE>" );
if (hObj != NULLHANDLE)
{
/* WinQueryObject of WP_SAMPLE was successful */
rc = WinSetObjectData(hObj,
"TITLE="Sample Object;
HELPPANEL=SAMPLEHELP_ID");
if (rc)
{
/* Object data is set */
}
else
{
/* WinSetObjectData failed */
}
}
}