L_TwainEnableShowUserInterfaceOnly

Summary

Indicates whether to display the TWAIN user interface with or without the Scan button, if supported.

Syntax

#include "lttwn.h"

L_LTTWN_API L_INT L_TwainEnableShowUserInterfaceOnly (hSession, bEnable)

Parameters

HTWAINSESSION hSession

Handle to an existing TWAIN session. This handle is obtained by calling either the L_TwainInitSession or L_TwainInitSession2 function.

L_BOOL bEnable

Flag that indicates whether to display the user interface.  Possible values are:

Value Meaning
TRUE Display the TWAIN user interface without the scan button, if supported.
FALSE Display the normal TWAIN driver user interface with the scan button. (Default)

Returns

Value Meaning
SUCCESS The function was successful.
! = SUCCESS An error occurred. Refer to Return Codes.

Comments

To display the TWAIN driver user interface without the scan button, call this function with the bEnable parameter set to true. Then call L_TwainTemplateDlg to display the template dialog.

If you call this function with the bEnable parameter set to false, the template dialog will display the normal TWAIN user interface, with the scan button.

Required DLLs and Libraries

See Also

Function

Topics

Example

L_INT TwainEnableShowUserInterfaceOnlyExample(L_TCHAR* pszFileName, HTWAINSESSION hSession) 
{ 
   L_INT nRet; 
   nRet = L_TwainEnableShowUserInterfaceOnly(hSession, TRUE); 
   if(nRet != SUCCESS) 
      return nRet; 
   nRet = L_TwainTemplateDlg(hSession, pszFileName, NULL, NULL, NULL); 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 
} 
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS TWAIN C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.