ReactOS 0.4.16-dev-340-g0540c21
CZipExtract::CExtractSettingsPage Class Reference
Inheritance diagram for CZipExtract::CExtractSettingsPage:
Collaboration diagram for CZipExtract::CExtractSettingsPage:

Classes

struct  browse_info
 

Public Types

enum  { IDD = IDD_PROPPAGEDESTINATION }
 
- Public Types inherited from ATL::CPropertyPageImpl< CExtractSettingsPage >
typedef CPropertyPageImpl< CExtractSettingsPage > thisClass
 
- Public Types inherited from ATL::CWindowImplRoot< TBase >
enum  { WINSTATE_DESTROYED = 0x00000001 }
 

Public Member Functions

 CExtractSettingsPage (CZipExtract *extract, CStringA *password)
 
int OnSetActive ()
 
int OnWizardNext ()
 
void WizardReset ()
 
BOOL OnQueryCancel ()
 
LRESULT OnBrowse (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnEnChangeDirectory (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnPassword (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
void UpdateDirectory ()
 
- Public Member Functions inherited from ATL::CPropertyPageImpl< CExtractSettingsPage >
 operator PROPSHEETPAGE * ()
 
 CPropertyPageImpl (LPCTSTR lpszTitle=NULL)
 
HPROPSHEETPAGE Create ()
 
BOOL EndDialog (_In_ int nRetCode)
 
void SetModified (BOOL bChanged=TRUE)
 
void SetWizardButtons (DWORD dwFlags)
 
BOOL OnPageCreate ()
 
VOID OnPageAddRef ()
 
VOID OnPageRelease ()
 
int OnSetActive ()
 
BOOL OnKillActive ()
 
int OnApply ()
 
void OnReset ()
 
void OnHelp ()
 
int OnWizardBack ()
 
int OnWizardNext ()
 
BOOL OnWizardFinish ()
 
BOOL OnQueryCancel ()
 
BOOL OnGetObject (LPNMOBJECTNOTIFY lpObjectNotify)
 
int OnTranslateAccelerator (LPMSG lpMsg)
 
HWND OnQueryInitialFocus (HWND hwnd)
 
LRESULT OnNotify (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
- Public Member Functions inherited from ATL::CDialogImplBaseT< CWindow >
virtual ~CDialogImplBaseT ()
 
virtual DLGPROC GetDialogProc ()
 
virtual void OnFinalMessage (HWND)
 
- Public Member Functions inherited from ATL::CWindowImplRoot< TBase >
 CWindowImplRoot ()
 
virtual ~CWindowImplRoot ()
 
- Public Member Functions inherited from ATL::CWindow
 CWindow (HWND hWnd=NULL)
 
 operator HWND () const
 
UINT ArrangeIconicWindows ()
 
void Attach (HWND hWndNew)
 
HDC BeginPaint (LPPAINTSTRUCT lpPaint)
 
BOOL BringWindowToTop ()
 
BOOL CenterWindow (HWND hWndCenter=NULL)
 
BOOL ChangeClipboardChain (HWND hWndNewNext)
 
BOOL CheckDlgButton (int nIDButton, UINT nCheck)
 
BOOL CheckRadioButton (int nIDFirstButton, int nIDLastButton, int nIDCheckButton)
 
HWND ChildWindowFromPoint (POINT point) const
 
HWND ChildWindowFromPointEx (POINT point, UINT uFlags) const
 
BOOL ClientToScreen (LPPOINT lpPoint) const
 
BOOL ClientToScreen (LPRECT lpRect) const
 
HWND Create (LPCTSTR lpstrWndClass, HWND hWndParent, _U_RECT rect=NULL, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
 
BOOL CreateCaret (HBITMAP pBitmap)
 
BOOL CreateGrayCaret (int nWidth, int nHeight)
 
BOOL CreateSolidCaret (int nWidth, int nHeight)
 
HDWP DeferWindowPos (HDWP hWinPosInfo, HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT uFlags)
 
BOOL DestroyWindow ()
 
HWND Detach ()
 
int DlgDirList (LPTSTR lpPathSpec, int nIDListBox, int nIDStaticPath, UINT nFileType)
 
int DlgDirListComboBox (LPTSTR lpPathSpec, int nIDComboBox, int nIDStaticPath, UINT nFileType)
 
BOOL DlgDirSelect (LPTSTR lpString, int nCount, int nIDListBox)
 
BOOL DlgDirSelectComboBox (LPTSTR lpString, int nCount, int nIDComboBox)
 
void DragAcceptFiles (BOOL bAccept=TRUE)
 
BOOL DrawMenuBar ()
 
BOOL EnableScrollBar (UINT uSBFlags, UINT uArrowFlags=ESB_ENABLE_BOTH)
 
BOOL EnableWindow (BOOL bEnable=TRUE)
 
void EndPaint (LPPAINTSTRUCT lpPaint)
 
BOOL FlashWindow (BOOL bInvert)
 
BOOL GetClientRect (LPRECT lpRect) const
 
HDC GetDC ()
 
HDC GetDCEx (HRGN hRgnClip, DWORD flags)
 
HWND GetDescendantWindow (int nID) const
 
HRESULT GetDlgControl (int nID, REFIID iid, void **ppCtrl)
 
int GetDlgCtrlID () const
 
HRESULT GetDlgHost (int nID, REFIID iid, void **ppHost)
 
HWND GetDlgItem (_In_ int nID) const
 
UINT GetDlgItemInt (_In_ int nID, _Out_opt_ BOOL *lpTrans=NULL, _In_ BOOL bSigned=TRUE) const
 
UINT GetDlgItemText (_In_ int nID, _Out_writes_to_(nMaxCount, return+1) LPTSTR lpStr, _In_ int nMaxCount) const
 
BOOL GetDlgItemText (_In_ int nID, _Inout_ _Outref_result_maybenull_ _Post_z_ BSTR &bstrText) const
 
DWORD GetExStyle () const
 
HFONT GetFont () const
 
DWORD GetHotKey () const
 
HICON GetIcon (BOOL bBigIcon=TRUE) const
 
HWND GetLastActivePopup () const
 
HMENU GetMenu () const
 
HWND GetNextDlgGroupItem (HWND hWndCtl, BOOL bPrevious=FALSE) const
 
HWND GetNextDlgTabItem (HWND hWndCtl, BOOL bPrevious=FALSE) const
 
CWindow GetParent () const
 
BOOL GetScrollInfo (int nBar, LPSCROLLINFO lpScrollInfo)
 
BOOL GetScrollPos (int nBar)
 
BOOL GetScrollRange (int nBar, LPINT lpMinPos, LPINT lpMaxPos) const
 
DWORD GetStyle () const
 
HMENU GetSystemMenu (BOOL bRevert)
 
HWND GetTopLevelParent () const
 
HWND GetTopLevelWindow () const
 
HWND GetTopWindow () const
 
BOOL GetUpdateRect (LPRECT lpRect, BOOL bErase=FALSE)
 
int GetUpdateRgn (HRGN hRgn, BOOL bErase=FALSE)
 
HWND GetWindow (UINT nCmd) const
 
DWORD GetWindowContextHelpId () const
 
HDC GetWindowDC ()
 
LONG GetWindowLong (int nIndex) const
 
LONG_PTR GetWindowLongPtr (int nIndex) const
 
BOOL GetWindowPlacement (WINDOWPLACEMENT *lpwndpl) const
 
DWORD GetWindowProcessID ()
 
BOOL GetWindowRect (LPRECT lpRect) const
 
int GetWindowRgn (HRGN hRgn)
 
int GetWindowText (_Out_writes_to_(nMaxCount, return+1) LPTSTR lpszStringBuf, _In_ int nMaxCount) const
 
BOOL GetWindowText (_Inout_ _Outref_result_maybenull_ _Post_z_ BSTR &bstrText) const
 
int GetWindowTextLength () const
 
DWORD GetWindowThreadID ()
 
WORD GetWindowWord (int nIndex) const
 
void GotoDlgCtrl (HWND hWndCtrl) const
 
BOOL HideCaret ()
 
BOOL HiliteMenuItem (HMENU hMenu, UINT uHiliteItem, UINT uHilite)
 
BOOL Invalidate (BOOL bErase=TRUE)
 
BOOL InvalidateRect (LPCRECT lpRect, BOOL bErase=TRUE)
 
void InvalidateRgn (HRGN hRgn, BOOL bErase=TRUE)
 
BOOL IsChild (const HWND hWnd) const
 
BOOL IsDialogMessage (LPMSG lpMsg)
 
UINT IsDlgButtonChecked (int nIDButton) const
 
BOOL IsIconic () const
 
BOOL IsParentDialog ()
 
BOOL IsWindow () const
 
BOOL IsWindowEnabled () const
 
BOOL IsWindowVisible () const
 
BOOL IsWindowUnicode ()
 
BOOL IsZoomed () const
 
BOOL KillTimer (UINT_PTR nIDEvent)
 
BOOL LockWindowUpdate (BOOL bLock=TRUE)
 
int MapWindowPoints (HWND hWndTo, LPPOINT lpPoint, UINT nCount) const
 
int MapWindowPoints (HWND hWndTo, LPRECT lpRect) const
 
int MessageBox (LPCTSTR lpszText, LPCTSTR lpszCaption=NULL, UINT nType=MB_OK)
 
BOOL ModifyStyle (DWORD dwRemove, DWORD dwAdd, UINT nFlags=0)
 
BOOL ModifyStyleEx (DWORD dwRemove, DWORD dwAdd, UINT nFlags=0)
 
BOOL MoveWindow (int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE)
 
void NextDlgCtrl () const
 
BOOL OpenClipboard ()
 
BOOL PostMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0)
 
void PrevDlgCtrl () const
 
void Print (HDC hDC, DWORD dwFlags) const
 
void PrintClient (HDC hDC, DWORD dwFlags) const
 
BOOL RedrawWindow (LPCRECT lpRectUpdate=NULL, HRGN hRgnUpdate=NULL, UINT flags=RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE)
 
int ReleaseDC (HDC hDC)
 
BOOL ResizeClient (int nWidth, int nHeight, BOOL bRedraw=FALSE)
 
BOOL ScreenToClient (LPPOINT lpPoint) const
 
BOOL ScrollWindow (int xAmount, int yAmount, LPCRECT lpRect=NULL, LPCRECT lpClipRect=NULL)
 
int ScrollWindowEx (int dx, int dy, LPCRECT lpRectScroll, LPCRECT lpRectClip, HRGN hRgnUpdate, LPRECT lpRectUpdate, UINT flags)
 
LRESULT SendDlgItemMessage (int nID, UINT message, WPARAM wParam=0, LPARAM lParam=0)
 
LRESULT SendMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0)
 
void SendMessageToDescendants (UINT message, WPARAM wParam=0, LPARAM lParam=0, BOOL bDeep=TRUE)
 
BOOL SendNotifyMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0)
 
HWND SetActiveWindow ()
 
HWND SetCapture ()
 
HWND SetClipboardViewer ()
 
int SetDlgCtrlID (int nID)
 
BOOL SetDlgItemInt (int nID, UINT nValue, BOOL bSigned=TRUE)
 
BOOL SetDlgItemText (int nID, LPCTSTR lpszString)
 
HWND SetFocus ()
 
void SetFont (HFONT hFont, BOOL bRedraw=TRUE)
 
int SetHotKey (WORD wVirtualKeyCode, WORD wModifiers)
 
HICON SetIcon (HICON hIcon, BOOL bBigIcon=TRUE)
 
BOOL SetMenu (HMENU hMenu)
 
HWND SetParent (HWND hWndNewParent)
 
void SetRedraw (BOOL bRedraw=TRUE)
 
int SetScrollInfo (int nBar, LPSCROLLINFO lpScrollInfo, BOOL bRedraw=TRUE)
 
int SetScrollPos (int nBar, int nPos, BOOL bRedraw=TRUE)
 
BOOL SetScrollRange (int nBar, int nMinPos, int nMaxPos, BOOL bRedraw=TRUE)
 
UINT_PTR SetTimer (UINT_PTR nIDEvent, UINT nElapse, void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD)=NULL)
 
BOOL SetWindowContextHelpId (DWORD dwContextHelpId)
 
LONG SetWindowLong (int nIndex, LONG dwNewLong)
 
LONG_PTR SetWindowLongPtr (int nIndex, LONG_PTR dwNewLong)
 
BOOL SetWindowPlacement (const WINDOWPLACEMENT *lpwndpl)
 
BOOL SetWindowPos (HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags)
 
int SetWindowRgn (HRGN hRgn, BOOL bRedraw=FALSE)
 
BOOL SetWindowText (LPCTSTR lpszString)
 
WORD SetWindowWord (int nIndex, WORD wNewWord)
 
BOOL ShowCaret ()
 
BOOL ShowOwnedPopups (BOOL bShow=TRUE)
 
BOOL ShowScrollBar (UINT nBar, BOOL bShow=TRUE)
 
BOOL ShowWindow (int nCmdShow)
 
BOOL ShowWindowAsync (int nCmdShow)
 
BOOL UpdateWindow ()
 
BOOL ValidateRect (LPCRECT lpRect)
 
BOOL ValidateRgn (HRGN hRgn)
 
BOOL WinHelp (LPCTSTR lpszHelp, UINT nCmd=HELP_CONTEXT, DWORD dwData=0)
 
- Public Member Functions inherited from ATL::CMessageMap
virtual BOOL ProcessWindowMessage (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult, DWORD dwMsgMapID)=0
 

Static Public Member Functions

static DWORD WINAPI ExtractEntry (LPVOID lpParam)
 
static INT CALLBACK s_BrowseCallbackProc (HWND hWnd, UINT uMsg, LPARAM lp, LPARAM pData)
 
- Static Public Member Functions inherited from ATL::CPropertyPageImpl< CExtractSettingsPage >
static UINT CALLBACK PropPageCallback (HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp)
 
- Static Public Member Functions inherited from ATL::CDialogImplBaseT< CWindow >
static INT_PTR CALLBACK StartDialogProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static INT_PTR CALLBACK DialogProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
- Static Public Member Functions inherited from ATL::CWindow
static LPCTSTR GetWndClassName ()
 
static LRESULT SendMessage (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 

Private Attributes

HANDLE m_hExtractionThread
 
bool m_bExtractionThreadCancel
 
CZipExtractm_pExtract
 
CStringAm_pPassword
 
CStringW m_OldStatus
 

Additional Inherited Members

- Public Attributes inherited from ATL::CPropertyPageImpl< CExtractSettingsPage >
PROPSHEETPAGE m_psp
 
- Public Attributes inherited from ATL::CWindowImplRoot< TBase >
CWndProcThunk m_thunk
 
const _ATL_MSGm_pCurrentMsg
 
DWORD m_dwState
 
- Public Attributes inherited from ATL::CWindow
HWND m_hWnd
 
- Static Public Attributes inherited from ATL::CWindow
static RECT rcDefault
 

Detailed Description

Definition at line 72 of file CZipExtract.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 276 of file CZipExtract.cpp.

Constructor & Destructor Documentation

◆ CExtractSettingsPage()

CZipExtract::CExtractSettingsPage::CExtractSettingsPage ( CZipExtract extract,
CStringA password 
)
inline

Definition at line 83 of file CZipExtract.cpp.

89 {
91 m_psp.pszHeaderSubTitle = MAKEINTRESOURCE(IDS_WIZ_DEST_SUBTITLE);
92 m_psp.dwFlags |= PSP_USETITLE | PSP_USEHEADERTITLE | PSP_USEHEADERSUBTITLE;
93 }
#define NULL
Definition: types.h:112
#define IDS_WIZ_DEST_TITLE
Definition: resource.h:59
#define IDS_WIZ_DEST_SUBTITLE
Definition: resource.h:60
#define IDS_WIZ_TITLE
Definition: resource.h:58
static void extract(LPCWSTR cabfile, LPWSTR destdir)
Definition: extrac32.c:99
static WCHAR password[]
Definition: url.c:33
#define PSP_USETITLE
Definition: prsht.h:26
#define MAKEINTRESOURCE
Definition: winuser.h:591

Member Function Documentation

◆ ExtractEntry()

static DWORD WINAPI CZipExtract::CExtractSettingsPage::ExtractEntry ( LPVOID  lpParam)
inlinestatic

Definition at line 169 of file CZipExtract.cpp.

170 {
172 bool res = pPage->m_pExtract->Extract(pPage->m_hWnd, pPage->GetDlgItem(IDC_PROGRESS), &(pPage->m_bExtractionThreadCancel));
173 /* Failing and cancelling extraction both mean we stay on the same property page */
174 pPage->m_bExtractionThreadCancel = !res;
175
176 pPage->SetWizardButtons(PSWIZB_NEXT);
177 if (!res)
178 {
179 /* Extraction failed/cancelled: the page becomes interactive again */
180 ::EnableWindow(pPage->GetDlgItem(IDC_BROWSE), TRUE);
181 ::EnableWindow(pPage->GetDlgItem(IDC_DIRECTORY), TRUE);
182 ::EnableWindow(pPage->GetDlgItem(IDC_PASSWORD), TRUE);
183
184 /* Reset the progress bar's appearance */
185 CWindow Progress(pPage->GetDlgItem(IDC_PROGRESS));
186 Progress.SendMessage(PBM_SETRANGE32, 0, 1);
187 Progress.SendMessage(PBM_SETPOS, 0, 0);
188 pPage->WizardReset();
189 }
190 SendMessageCallback(pPage->GetParent().m_hWnd, PSM_PRESSBUTTON, PSBTN_NEXT, 0, NULL, NULL);
191
192 return 0;
193 }
#define IDC_BROWSE
Definition: resource.h:21
BOOL EnableWindow(BOOL bEnable=TRUE)
Definition: atlwin.h:523
CExtractSettingsPage(CZipExtract *extract, CStringA *password)
Definition: CZipExtract.cpp:83
#define TRUE
Definition: types.h:120
#define IDC_DIRECTORY
Definition: resource.h:18
#define IDC_PASSWORD
Definition: resource.h:20
#define IDC_PROGRESS
Definition: resource.h:21
GLuint res
Definition: glext.h:9613
#define PSWIZB_NEXT
Definition: prsht.h:154
#define PSBTN_NEXT
Definition: prsht.h:147
#define PSM_PRESSBUTTON
Definition: prsht.h:100
#define PBM_SETRANGE32
Definition: commctrl.h:2193
#define PBM_SETPOS
Definition: commctrl.h:2189
#define SendMessageCallback
Definition: winuser.h:5856

Referenced by OnWizardNext().

◆ OnBrowse()

LRESULT CZipExtract::CExtractSettingsPage::OnBrowse ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)
inline

Definition at line 224 of file CZipExtract.cpp.

225 {
226 BROWSEINFOW bi = { m_hWnd };
228 bi.pszDisplayName = path;
232 bi.lpszTitle = title;
233
236
237 browse_info info = { m_hWnd, m_pExtract->m_Directory.GetString() };
238 bi.lParam = (LPARAM)&info;
239
241 pidl.Attach(SHBrowseForFolderW(&bi));
242
243 WCHAR tmpPath[MAX_PATH];
244 if (pidl && SHGetPathFromIDListW(pidl, tmpPath))
245 {
246 m_pExtract->m_Directory = tmpPath;
249 }
250 return 0;
251 }
EXTERN_C LPITEMIDLIST WINAPI SHBrowseForFolderW(LPBROWSEINFOW lpbi)
Definition: brfolder.cpp:1370
PXSTR GetString() noexcept
Definition: atlsimpstr.h:367
HWND m_hWnd
Definition: atlwin.h:273
void Attach(T *lp)
Definition: atlalloc.h:162
static INT CALLBACK s_BrowseCallbackProc(HWND hWnd, UINT uMsg, LPARAM lp, LPARAM pData)
bool m_DirectoryChanged
Definition: CZipExtract.cpp:18
CStringW m_Directory
Definition: CZipExtract.cpp:16
#define IDS_WIZ_BROWSE_TITLE
Definition: resource.h:64
#define MAX_PATH
Definition: compat.h:34
BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST pidl, LPWSTR pszPath)
Definition: pidl.c:1452
static char title[]
Definition: ps.c:92
#define BIF_RETURNONLYFSDIRS
Definition: shlobj.h:1217
#define BIF_RETURNFSANCESTORS
Definition: shlobj.h:1220
#define BIF_NEWDIALOGSTYLE
Definition: shlobj.h:1223
BFFCALLBACK lpfn
Definition: shlobj.h:1205
UINT ulFlags
Definition: shlobj.h:1204
LPWSTR pszDisplayName
Definition: shlobj.h:1202
LPCWSTR lpszTitle
Definition: shlobj.h:1203
LPARAM lParam
Definition: shlobj.h:1206
LONG_PTR LPARAM
Definition: windef.h:208
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ OnEnChangeDirectory()

LRESULT CZipExtract::CExtractSettingsPage::OnEnChangeDirectory ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)
inline

Definition at line 253 of file CZipExtract.cpp.

254 {
256 return 0;
257 }

◆ OnPassword()

LRESULT CZipExtract::CExtractSettingsPage::OnPassword ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)
inline

Definition at line 259 of file CZipExtract.cpp.

260 {
263 {
265 }
266 return 0;
267 }
eZipPasswordResponse _CZipAskPassword(HWND hDlg, PCWSTR filename, CStringA &Password)
@ eAccept
Definition: precomp.h:64
@ Password
Definition: telnetd.h:65

◆ OnQueryCancel()

BOOL CZipExtract::CExtractSettingsPage::OnQueryCancel ( )
inline

Definition at line 195 of file CZipExtract.cpp.

196 {
198 {
199 /* Extraction will check the value of m_bExtractionThreadCancel between each file in the archive */
201 return TRUE;
202 }
203 return FALSE;
204 }
#define FALSE
Definition: types.h:117

◆ OnSetActive()

int CZipExtract::CExtractSettingsPage::OnSetActive ( )
inline

Definition at line 95 of file CZipExtract.cpp.

96 {
101 return 0;
102 }
BOOL CenterWindow(HWND hWndCenter=NULL)
Definition: atlwin.h:315
CWindow GetParent() const
Definition: atlwin.h:700
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:628

◆ OnWizardNext()

int CZipExtract::CExtractSettingsPage::OnWizardNext ( )
inline

Definition at line 104 of file CZipExtract.cpp.

105 {
107 {
108 /* We enter here when extraction has finished, and go to next page if it succeeded */
114 {
115 return 0;
116 }
117 else
118 {
120 return TRUE;
121 }
122 }
123
124 /* We end up here if the user manually clicks Next: start extraction */
126
127 /* Grey out every control during extraction to prevent user interaction */
132
136 SetDlgItemTextW(IDC_STATUSTEXT, strExtracting);
137
140
142
145 this,
146 0, NULL);
148 {
149 /* Extraction thread creation failed, do not go to the next page */
151 DPRINT1("ERROR, m_hExtractionThread: CreateThread failed: 0x%x\n", err);
153
155
160 }
161 return TRUE;
162 }
#define DPRINT1
Definition: precomp.h:8
void ReleaseBuffer(_In_ int nNewLength=-1)
Definition: atlsimpstr.h:387
HWND GetDlgItem(_In_ int nID) const
Definition: atlwin.h:605
static DWORD WINAPI ExtractEntry(LPVOID lpParam)
#define IDC_STATUSTEXT
Definition: resource.h:40
#define IDS_EXTRACTING
Definition: resource.h:52
#define CloseHandle
Definition: compat.h:739
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
Definition: thread.c:137
#define INFINITE
Definition: serial.h:102
unsigned long DWORD
Definition: ntddk_ex.h:95
ULONG AddRef()
ULONG Release()
#define err(...)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
Definition: synch.c:82
#define SetWindowLongPtr
Definition: treelist.c:70
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
Definition: window.c:1384
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define DWLP_MSGRESULT
Definition: winuser.h:873

◆ s_BrowseCallbackProc()

static INT CALLBACK CZipExtract::CExtractSettingsPage::s_BrowseCallbackProc ( HWND  hWnd,
UINT  uMsg,
LPARAM  lp,
LPARAM  pData 
)
inlinestatic

Definition at line 212 of file CZipExtract.cpp.

213 {
214 if (uMsg == BFFM_INITIALIZED)
215 {
216 browse_info* info = (browse_info*)pData;
217 CWindow dlg(hWnd);
218 dlg.SendMessage(BFFM_SETSELECTION, TRUE, (LPARAM)info->Directory);
219 dlg.CenterWindow(info->hWnd);
220 }
221 return 0;
222 }
HWND hWnd
Definition: settings.c:17
#define BFFM_SETSELECTION
Definition: shlobj.h:1256
#define BFFM_INITIALIZED
Definition: shlobj.h:1236
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Definition: twain.h:1830

Referenced by OnBrowse().

◆ UpdateDirectory()

void CZipExtract::CExtractSettingsPage::UpdateDirectory ( )
inline

Definition at line 269 of file CZipExtract.cpp.

270 {
273 }
#define GetDlgItemText
Definition: winuser.h:5797

Referenced by OnBrowse(), and OnWizardNext().

◆ WizardReset()

void CZipExtract::CExtractSettingsPage::WizardReset ( )
inline

Definition at line 164 of file CZipExtract.cpp.

Referenced by ExtractEntry().

Member Data Documentation

◆ m_bExtractionThreadCancel

bool CZipExtract::CExtractSettingsPage::m_bExtractionThreadCancel
private

Definition at line 76 of file CZipExtract.cpp.

Referenced by ExtractEntry(), OnQueryCancel(), and OnWizardNext().

◆ m_hExtractionThread

HANDLE CZipExtract::CExtractSettingsPage::m_hExtractionThread
private

Definition at line 75 of file CZipExtract.cpp.

Referenced by OnQueryCancel(), and OnWizardNext().

◆ m_OldStatus

CStringW CZipExtract::CExtractSettingsPage::m_OldStatus
private

Definition at line 80 of file CZipExtract.cpp.

Referenced by OnWizardNext(), and WizardReset().

◆ m_pExtract

CZipExtract* CZipExtract::CExtractSettingsPage::m_pExtract
private

◆ m_pPassword

CStringA* CZipExtract::CExtractSettingsPage::m_pPassword
private

Definition at line 79 of file CZipExtract.cpp.

Referenced by OnPassword().


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