#include “BlackIceDEVMODE.h”
BOOL IsTabEnabled(BlackIceDEVMODE* pDevMode, DWORD dwTab);
Description
Returns the state of a tab in the Printing Preferences window.
Parameters
BlackIceDEVMODE* pDevMode - pointer to the BlackIceDEVMODE structure
DWORD dwTab - number of the tab, for possible values, see the enum below.
Return value
TRUE if the tab is enabled, otherwise FALSE
Programming Notes
enum UITabs
{
UI_TAB_FILEFORMAT, |
// 0 |
UI_TAB_FILENAMEGENERATION, |
// 1 |
UI_TAB_STARTAPPLICATION, |
// 2 |
UI_TAB_WATERMARK, |
// 3 |
UI_TAB_ANNOTATION, |
// 4 |
UI_TAB_BATES, |
// 5 |
UI_TAB_PROFILEMANAGER, |
// 6 |
UI_TAB_REDIRECTPRINTING, |
// 7 |
UI_TAB_BARCODE, |
// 8 |
UI_TAB_OCR, |
// 9 |
UI_TAB_TEXTOUTPUT |
// 10 |
};
The “Device settings” tab cannot be hidden and will always be displayed.
Please note, if you use the API functions EnableTab or DisableTab from the BlackIceDEVMODE dll or ActiveX control, it will override the settings of the INI file until you reinstall the driver or delete the following registry key:
HKEY_CURRENT_USER\Software\Black Ice Software LLC\<Name of the Black Ice Printer>\UI Tabs Settings
Code Example
None