ReactOS 0.4.15-dev-7924-g5949c20
ReportDialog.h File Reference
#include <windows.h>
Include dependency graph for ReportDialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

INT_PTR CALLBACK ReportDialogProc (HWND Dlg, UINT Msg, WPARAM WParam, LPARAM LParam)
 

Function Documentation

◆ ReportDialogProc()

INT_PTR CALLBACK ReportDialogProc ( HWND  Dlg,
UINT  Msg,
WPARAM  WParam,
LPARAM  LParam 
)

Definition at line 197 of file ReportDialog.cpp.

198{
199 switch (Msg)
200 {
201 case WM_INITDIALOG:
202 SetReportInfo (Dlg, Defrag->GetDefragReport (), 1, L"bytes", false);
203 return (1);
204
205 case WM_COMMAND:
206 switch (LOWORD(WParam))
207 {
208 case IDC_REPORTOK:
209 EndDialog (Dlg, 0);
210 return (1);
211
212 case IDC_GIGABYTES:
213 SetReportInfo (Dlg, Defrag->GetDefragReport (), 1024*1024*1024, L"GB", true);
214 return (1);
215
216 case IDC_MEGABYTES:
217 SetReportInfo (Dlg, Defrag->GetDefragReport (), 1024*1024, L"MB", false);
218 return (1);
219
220 case IDC_KILOBYTES:
221 SetReportInfo (Dlg, Defrag->GetDefragReport (), 1024, L"KB", false);
222 return (1);
223
224 case IDC_BYTES:
225 SetReportInfo (Dlg, Defrag->GetDefragReport (), 1, L"bytes", false);
226 return (1);
227 }
228 }
229
230 return (0);
231}
Defragment * Defrag
Definition: Fraginator.cpp:20
void SetReportInfo(HWND Dlg, DefragReport &Report, uint32 BytesDivisor, const wchar_t *BytesUnits, bool Fractional)
Definition: ReportDialog.cpp:9
DefragReport & GetDefragReport(void)
Definition: Defragment.h:58
struct @1632 Msg[]
#define IDC_BYTES
Definition: resource.h:26
#define IDC_MEGABYTES
Definition: resource.h:35
#define IDC_GIGABYTES
Definition: resource.h:33
#define IDC_REPORTOK
Definition: resource.h:19
#define IDC_KILOBYTES
Definition: resource.h:27
#define L(x)
Definition: ntvdm.h:50
#define LOWORD(l)
Definition: pedump.c:82
#define WM_COMMAND
Definition: winuser.h:1740
#define WM_INITDIALOG
Definition: winuser.h:1739
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

Referenced by MainDialogProc().