Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions
CScannerWnd Class Reference

#include <ScannerWnd.h>

List of all members.

Public Member Functions

 CScannerWnd ()
virtual ~CScannerWnd ()

Protected Member Functions

afx_msg void OnTimer (UINT nIDEvent)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)

Detailed Description

Definition at line 13 of file ScannerWnd.h.

Constructor & Destructor Documentation

Definition at line 18 of file ScannerWnd.cpp.


Definition at line 22 of file ScannerWnd.cpp.


Member Function Documentation

int CScannerWnd::OnCreate ( LPCREATESTRUCT  lpCreateStruct) [protected]

Definition at line 39 of file ScannerWnd.cpp.

       if (CWnd::OnCreate(lpCreateStruct) == -1)
              return -1;

       SetTimer(1, 500, NULL);
       return 0;
void CScannerWnd::OnTimer ( UINT  nIDEvent) [protected]

Definition at line 50 of file ScannerWnd.cpp.

       CIEPatcherDlg * pDlg = ((CIEPatcherApp *) AfxGetApp())->m_pIEPatcherDlg;
       if (pDlg)
              CString sFileToProcess;
              if (pDlg->GetPendingFileToScan(sFileToProcess))
                     PatchStatus ps = CIEPatcherDlg::ScanFile(sFileToProcess);
                     AfxGetMainWnd()->SendMessage(WM_UPDATEFILESTATUS, (WPARAM) ps, (LPARAM) (const TCHAR *) sFileToProcess);
              else if (pDlg->GetPendingFileToPatch(sFileToProcess))
                     TCHAR szDrive[_MAX_DRIVE];
                     TCHAR szDir[_MAX_DIR];
                     TCHAR szFile[_MAX_FNAME];
                     TCHAR szExt[_MAX_EXT];

                     _tsplitpath(sFileToProcess, szDrive, szDir, szFile, szExt);

                     CString sFileOut;
                     TCHAR szPath[_MAX_PATH];
                     sFileOut.Format(_T("moz_%s"), szFile);
                     _tmakepath(szPath, szDrive, szDir, sFileOut, szExt);
                     PatchStatus ps;
                     CIEPatcherDlg::PatchFile(sFileToProcess, szPath, &ps);
                     AfxGetMainWnd()->SendMessage(WM_UPDATEFILESTATUS, (WPARAM) ps, (LPARAM) (const TCHAR *) sFileToProcess);

Here is the call graph for this function:

The documentation for this class was generated from the following files: