/*[]=====================================================================[]*/ /*[] LeadTools Run Time Library - Version 14 []*/ /*[] []*/ /*[] []*/ /*[] Copyright (c) 1991-2005 by LEAD Technologies, Inc. []*/ /*[] All Rights Reserved. []*/ /*[]=====================================================================[]*/ #define STRICT #include #include #include "Twain.h" L_VOID InitErrorListDlg(HWND hDlg); L_BOOL CALLBACK ErrorListDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { UNREFERENCED_PARAMETER(lParam); switch (message) { case WM_INITDIALOG: InitErrorListDlg(hDlg); return(TRUE); case WM_COMMAND: switch (LOWORD(wParam)) { case IDC_BUTTON_CLEAR_LIST: { HWND hWndCtl = GetDlgItem(hDlg, IDC_LIST_TWAIN_ERROR_LIST); ListBox_ResetContent(hWndCtl); GlobalFreePtr(g_pErrorList); g_nErrorListMaxCount = 0; g_nErrorListCount = 0; g_pErrorList = NULL; } return TRUE; case IDOK: case IDCANCEL: EndDialog(hDlg, 0); return TRUE; } } return(FALSE); } L_VOID InitErrorListDlg(HWND hDlg) { HWND hWndCtl = GetDlgItem(hDlg, IDC_LIST_TWAIN_ERROR_LIST); for (L_INT i=0; i