Keywords Example VC++

This example shows how you can set several file properties. These properties can also be set by the user at runtime from the UI dialog box created by the ShowFileProperties method.

void CAdmin1Dlg::OnFileproperties() 
{
    // Specify the image you are going to set properties for.
    ImgAdmin1.SetImage ("D:\\image2\\hopolicy.tif");
    ImgAdmin1.SetTitle ("HomeOwners Policy");
    ImgAdmin1.SetAuthor ("John Q. Agent");
    // Adding multiple keywords.
    ImgAdmin1.SetKeywords ("insurance important house");
    ImgAdmin1.SetComments ("1997 Homeowners Policy");
    ImgAdmin1.SetSubject ("Insurance");
    // Call SetFileProperties to actually write the 
    // properties to the file.
    ImgAdmin1.SetFileProperties();
}