twain2/hugaotwainds/MFC_UI.h

40 lines
912 B
C++

#pragma once
#include "CTWAINDS_FreeImage.h"
#include "TWAIN_UI.h"
class TwainUIDlg;
class CWnd;
class IndicatorDlg;
class ChugaotwaindsApp;
class MFC_UI :
public CTWAIN_UI
{
public:
MFC_UI(CTWAINDS_FreeImage *pDS);
~MFC_UI();
/**
* Will show the TWAIN GUI
* @param[in] _pData contains info about if the UI should be shown etc.
* @return a valid TWRC_xxxx return code.
*/
TW_INT16 DisplayTWAINGUI(TW_USERINTERFACE Data, bool bSetup, bool bIndicators);
/**
* Close the user interface for TWAIN
*/
void DestroyTWAINGUI();
void UpdateProgress(bool bShow, unsigned char ucProgress, unsigned int unPageNo, string strProgressTitle);
unsigned int MyMessageBox(string strMessage, string strTitle, unsigned int unIconID);
bool processEvent(pTW_EVENT _pEvent);
private:
TwainUIDlg* m_pDlg;
CWnd* m_pChildWnd;
IndicatorDlg* indicator;
bool indicatorCreated;
bool showUI;
ChugaotwaindsApp* m_app;
};