EnableShowUserInterfaceOnly Example for C++ 5.0 and later
ILEADRasterTwain * pltRasTwain;
CString strTemplateFile = "";
CFileDialog TemplateFile (FALSE, "ltt", NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, "Template Files (*.ltt)|*.ltt|All Files (*.*)|*.*||");
if (TemplateFile.DoModal() == IDOK)
{
strTemplateFile = TemplateFile.GetPathName();
pltRasTwain-> EnableShowUserInterfaceOnly = TRUE;
short iRet = pltRasTwain->ShowTemplateDlg(strTemplateFile.AllocSysString());
if (iRet != 0)
MessageBox ("Error Showing Template File");
}