To register a clipboard format, add a call to the RegisterClipboardFormat function to your application's instance initialization function, as follows.
// Register a clipboard format.
LoadString(hinstCurrent, IDS_FORMATNAME, atchTemp,
sizeof(atchTemp));
uLabelFormat = RegisterClipboardFormat(atchTemp);
if (uLabelFormat == 0)
return FALSE;