ReactOS 0.4.16-dev-930-gcc8ec38
CCleanMgrProperties Struct Reference
Inheritance diagram for CCleanMgrProperties:
Collaboration diagram for CCleanMgrProperties:

Public Types

enum  { IDD = IDD_PROPERTIES_MAIN }
 
- Public Types inherited from ATL::CPropertyPageImpl< CCleanMgrProperties >
typedef CPropertyPageImpl< CCleanMgrPropertiesthisClass
 
- Public Types inherited from ATL::CWindowImplRoot< TBase >
enum  { WINSTATE_DESTROYED = 0x00000001 }
 

Public Member Functions

 CCleanMgrProperties (WCHAR Drive, DWORDLONG TotalSpaceUsed, CCleanupHandlerList *handlerList)
 
int OnApply ()
 
LRESULT OnInitDialog (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
CCleanupHandlerGetHandler (int Index)
 
LRESULT OnDetails (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnHandlerItemchanged (int idCtrl, LPNMHDR pnmh, BOOL &bHandled)
 
void UpdateSpaceUsed ()
 
- Public Member Functions inherited from ATL::CPropertyPageImpl< CCleanMgrProperties >
 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
 

Public Attributes

CWindow m_HandlerListControl
 
WCHAR m_Drive
 
DWORDLONG m_TotalSpaceUsed
 
CCleanupHandlerListm_HandlerList
 
bool m_IgnoreChanges = true
 
- Public Attributes inherited from ATL::CPropertyPageImpl< CCleanMgrProperties >
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
 

Additional Inherited Members

- Static Public Member Functions inherited from ATL::CPropertyPageImpl< CCleanMgrProperties >
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)
 
- Static Public Attributes inherited from ATL::CWindow
static RECT rcDefault
 

Detailed Description

Definition at line 17 of file cleanmgr.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 20 of file cleanmgr.cpp.

#define IDD_PROPERTIES_MAIN
Definition: resource.h:12

Constructor & Destructor Documentation

◆ CCleanMgrProperties()

CCleanMgrProperties::CCleanMgrProperties ( WCHAR  Drive,
DWORDLONG  TotalSpaceUsed,
CCleanupHandlerList handlerList 
)
inline

Definition at line 28 of file cleanmgr.cpp.

29 : m_Drive(Drive)
30 , m_TotalSpaceUsed(TotalSpaceUsed)
31 , m_HandlerList(handlerList)
32 {
33 }
PWCHAR Drive
Definition: chkdsk.c:73
DWORDLONG m_TotalSpaceUsed
Definition: cleanmgr.cpp:23
CCleanupHandlerList * m_HandlerList
Definition: cleanmgr.cpp:24

Member Function Documentation

◆ GetHandler()

CCleanupHandler * CCleanMgrProperties::GetHandler ( int  Index)
inline

Definition at line 104 of file cleanmgr.cpp.

105 {
106 LVITEMW item = {};
107 item.iItem = Index;
108 if (item.iItem >= 0)
109 {
110 item.mask = LVIF_PARAM;
112 return (CCleanupHandler*)item.lParam;
113 }
114 return nullptr;
115 }
static ATOM item
Definition: dde.c:856
#define LVIF_PARAM
Definition: commctrl.h:2316
#define ListView_GetItem(hwnd, pitem)
Definition: commctrl.h:2399
CWindow m_HandlerListControl
Definition: cleanmgr.cpp:21
_In_ WDFCOLLECTION _In_ ULONG Index

Referenced by OnDetails().

◆ OnApply()

int CCleanMgrProperties::OnApply ( )
inline

Definition at line 35 of file cleanmgr.cpp.

36 {
39
41 return PSNRET_INVALID;
42
43 return PSNRET_NOERROR;
44 }
#define IDS_CONFIRM_DELETE
Definition: resource.h:26
#define IDS_DISK_CLEANUP
Definition: resource.h:25
char * Text
Definition: combotst.c:136
static const WCHAR Title[]
Definition: oid.c:1259
#define PSNRET_INVALID
Definition: prsht.h:130
#define PSNRET_NOERROR
Definition: prsht.h:129
#define MB_YESNO
Definition: winuser.h:820
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
#define MB_ICONQUESTION
Definition: winuser.h:792
#define IDYES
Definition: winuser.h:838
#define MAKEINTRESOURCE
Definition: winuser.h:591

◆ OnDetails()

LRESULT CCleanMgrProperties::OnDetails ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)
inline

Definition at line 118 of file cleanmgr.cpp.

119 {
121 if (handler)
122 {
123 handler->Handler->ShowProperties(m_hWnd);
124 }
125 return 0L;
126 }
HWND m_hWnd
Definition: atlwin.h:273
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7512
#define L(x)
Definition: ntvdm.h:50
#define ListView_GetNextItem(hwnd, i, flags)
Definition: commctrl.h:2439
#define LVIS_FOCUSED
Definition: commctrl.h:2323
CCleanupHandler * GetHandler(int Index)
Definition: cleanmgr.cpp:104

◆ OnHandlerItemchanged()

LRESULT CCleanMgrProperties::OnHandlerItemchanged ( int  idCtrl,
LPNMHDR  pnmh,
BOOL bHandled 
)
inline

Definition at line 128 of file cleanmgr.cpp.

129 {
130 if (idCtrl == IDC_HANDLERLIST)
131 {
132 // We are still initializing, don't respond to changes just yet!
133 if (m_IgnoreChanges)
134 return 0L;
135
136 LPNMLISTVIEW pnic = (LPNMLISTVIEW)pnmh;
137
138 // We only care about state changes
139 if (!(pnic->uChanged & LVIF_STATE))
140 return 0L;
141
142
143 INT ItemIndex = pnic->iItem;
144 if (ItemIndex == -1 || ItemIndex >= ListView_GetItemCount(pnic->hdr.hwndFrom))
145 {
146 return 0L;
147 }
148
149 bool GotSelected = (pnic->uNewState & LVIS_SELECTED) && !(pnic->uOldState & LVIS_SELECTED);
150 if (GotSelected)
151 {
152 CWindow DetailsButton = GetDlgItem(IDC_DETAILS);
154
155 SetDlgItemText(IDC_DESCRIPTION, handler->wszDescription ? handler->wszDescription : L"");
156 if (handler->HasSettings())
157 {
158 DetailsButton.ShowWindow(SW_SHOW);
159 DetailsButton.SetWindowText(handler->wszBtnText);
160 }
161 else
162 {
163 DetailsButton.ShowWindow(SW_HIDE);
164 }
165 }
166
167 int iOldState = STATEIMAGETOINDEX(pnic->uOldState);
168 int iNewState = STATEIMAGETOINDEX(pnic->uNewState);
169
170 if ((iOldState ^ iNewState) == (STATEIMAGE_UNCHECKED ^ STATEIMAGE_CHECKED))
171 {
173 if (iNewState == STATEIMAGE_CHECKED)
174 handler->StateFlags |= HANDLER_STATE_SELECTED;
175 else
176 handler->StateFlags &= ~HANDLER_STATE_SELECTED;
178 }
179 }
180 return 0L;
181 }
#define HANDLER_STATE_SELECTED
#define IDC_DESCRIPTION
Definition: resource.h:17
#define IDC_HANDLERLIST
Definition: resource.h:15
#define IDC_DETAILS
Definition: resource.h:18
BOOL SetWindowText(LPCTSTR lpszString)
Definition: atlwin.h:1300
BOOL ShowWindow(int nCmdShow)
Definition: atlwin.h:1333
#define STATEIMAGETOINDEX(x)
Definition: cleanmgr.cpp:12
#define STATEIMAGE_UNCHECKED
Definition: cleanmgr.cpp:13
#define STATEIMAGE_CHECKED
Definition: cleanmgr.cpp:14
if(dx< 0)
Definition: linetemp.h:194
#define LVIF_STATE
Definition: commctrl.h:2317
#define ListView_GetItemCount(hwnd)
Definition: commctrl.h:2312
#define LVIS_SELECTED
Definition: commctrl.h:2324
struct tagNMLISTVIEW * LPNMLISTVIEW
HWND hwndFrom
Definition: winuser.h:3160
UINT uNewState
Definition: commctrl.h:3041
LPARAM lParam
Definition: commctrl.h:3045
UINT uOldState
Definition: commctrl.h:3042
int32_t INT
Definition: typedefs.h:58
#define SW_HIDE
Definition: winuser.h:771
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define SW_SHOW
Definition: winuser.h:778
#define SetDlgItemText
Definition: winuser.h:5861

◆ OnInitDialog()

LRESULT CCleanMgrProperties::OnInitDialog ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
inline

Definition at line 46 of file cleanmgr.cpp.

47 {
49 _AtlBaseModule.GetResourceInstance(), MAKEINTRESOURCEW(IDI_CLEANMGR), IMAGE_ICON, 0, 0,
52
54 RECT rc;
57
58 LV_COLUMN column = {};
59 column.mask = LVCF_FMT | LVCF_WIDTH;
60 column.fmt = LVCFMT_LEFT;
61 column.cx = rc.right * 80 / 100;
63 column.fmt = LVCFMT_RIGHT;
64 column.cx = rc.right * 20 / 100;
65
67 HIMAGELIST hImagelist = ImageList_Create(16, 16, ILC_MASK | ILC_COLOR32, 1, 1);
69
71
74 {
75 if (!current->ShowHandler)
76 return;
77
78 LV_ITEM item = {};
80 item.lParam = (LPARAM)current;
81 item.pszText = (LPWSTR)current->wszDisplayName;
83 item.iImage = ImageList_AddIcon(hImagelist, current->hIcon);
87
88 item.mask = LVIF_TEXT;
89 WCHAR ByteSize[100] = {};
92 });
93
94 // Now we should start responding to changes
95 m_IgnoreChanges = false;
96
97 // Select the first item
99
101 return TRUE;
102 }
#define IDI_CLEANMGR
Definition: resource.h:10
#define IDC_DISKICON
Definition: resource.h:13
BOOL GetClientRect(LPRECT lpRect) const
Definition: atlwin.h:541
void ForEach(Fn callback)
#define TRUE
Definition: types.h:120
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
Definition: imagelist.c:814
LPWSTR WINAPI StrFormatByteSizeW(LONGLONG llBytes, LPWSTR lpszDest, UINT cchMax)
Definition: string.c:2394
struct task_struct * current
Definition: linux.c:32
static HICON
Definition: imagelist.c:80
HICON hIcon
Definition: msconfig.c:44
#define LVSIL_SMALL
Definition: commctrl.h:2304
#define ListView_InsertItem(hwnd, pitem)
Definition: commctrl.h:2413
#define ListView_SetItemState(hwndLV, i, data, mask)
Definition: commctrl.h:2678
#define ListView_SetExtendedListViewStyleEx(hwndLV, dwMask, dw)
Definition: commctrl.h:2731
#define ListView_InsertColumn(hwnd, iCol, pcol)
Definition: commctrl.h:2641
#define ListView_SetCheckState(hwndLV, i, fCheck)
Definition: commctrl.h:2679
#define ListView_SetImageList(hwnd, himl, iImageList)
Definition: commctrl.h:2309
#define LVCF_WIDTH
Definition: commctrl.h:2592
#define ILC_COLOR32
Definition: commctrl.h:358
#define LVS_EX_CHECKBOXES
Definition: commctrl.h:2736
#define LVS_EX_FULLROWSELECT
Definition: commctrl.h:2739
#define LV_ITEM
Definition: commctrl.h:2342
#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_)
Definition: commctrl.h:2696
#define LVIF_TEXT
Definition: commctrl.h:2314
#define LVCF_FMT
Definition: commctrl.h:2591
#define ImageList_AddIcon(himl, hicon)
Definition: commctrl.h:415
#define LVCFMT_LEFT
Definition: commctrl.h:2603
#define ILC_MASK
Definition: commctrl.h:351
#define LVCFMT_RIGHT
Definition: commctrl.h:2604
#define LVIF_IMAGE
Definition: commctrl.h:2315
#define LV_COLUMN
Definition: commctrl.h:2552
#define _countof(array)
Definition: sndvol32.h:70
LONG right
Definition: windef.h:308
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
#define STM_SETICON
Definition: winuser.h:2095
#define IMAGE_ICON
Definition: winuser.h:212
#define SM_CXVSCROLL
Definition: winuser.h:964
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
Definition: cursoricon.c:2289
#define LR_SHARED
Definition: winuser.h:1103
#define LR_DEFAULTSIZE
Definition: winuser.h:1097
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define SendDlgItemMessage
Definition: winuser.h:5854
int WINAPI GetSystemMetrics(_In_ int)
_IRQL_requires_same_ _In_ CLONG ByteSize
Definition: rtltypes.h:412
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ UpdateSpaceUsed()

void CCleanMgrProperties::UpdateSpaceUsed ( )
inline

Definition at line 183 of file cleanmgr.cpp.

184 {
185 CStringW tmp;
186 WCHAR ByteSize[100];
188
191
192 DWORDLONG SelectedGained = 0;
193
196 {
197 if (current->StateFlags & HANDLER_STATE_SELECTED)
198 {
199 SelectedGained += current->SpaceUsed;
200 }
201 });
202
203 StrFormatByteSizeW(SelectedGained, ByteSize, _countof(ByteSize));
205 }
#define IDS_TOTAL_CLEANABLE_CAPTION
Definition: resource.h:24
#define IDC_SELECTED_GAINED
Definition: resource.h:16
#define IDC_TOTAL_CLEANABLE
Definition: resource.h:14
void __cdecl Format(UINT nFormatID,...)
Definition: cstringt.h:818
unsigned long long DWORDLONG
Definition: intsafe.h:93

Referenced by OnHandlerItemchanged(), and OnInitDialog().

Member Data Documentation

◆ m_Drive

WCHAR CCleanMgrProperties::m_Drive

Definition at line 22 of file cleanmgr.cpp.

Referenced by UpdateSpaceUsed().

◆ m_HandlerList

CCleanupHandlerList* CCleanMgrProperties::m_HandlerList

Definition at line 24 of file cleanmgr.cpp.

Referenced by OnInitDialog(), and UpdateSpaceUsed().

◆ m_HandlerListControl

CWindow CCleanMgrProperties::m_HandlerListControl

Definition at line 21 of file cleanmgr.cpp.

Referenced by GetHandler(), OnDetails(), and OnInitDialog().

◆ m_IgnoreChanges

bool CCleanMgrProperties::m_IgnoreChanges = true

Definition at line 25 of file cleanmgr.cpp.

Referenced by OnHandlerItemchanged(), and OnInitDialog().

◆ m_TotalSpaceUsed

DWORDLONG CCleanMgrProperties::m_TotalSpaceUsed

Definition at line 23 of file cleanmgr.cpp.

Referenced by UpdateSpaceUsed().


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