ReactOS  0.4.14-dev-49-gfb4591c
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
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
#define IDC_REPORTOK
Definition: resource.h:19
struct @1576 Msg[]
DefragReport & GetDefragReport(void)
Definition: Defragment.h:58
#define IDC_GIGABYTES
Definition: resource.h:33
static const WCHAR L[]
Definition: oid.c:1250
#define WM_COMMAND
Definition: winuser.h:1722
void SetReportInfo(HWND Dlg, DefragReport &Report, uint32 BytesDivisor, const wchar_t *BytesUnits, bool Fractional)
Definition: ReportDialog.cpp:9
#define IDC_BYTES
Definition: resource.h:26
#define IDC_MEGABYTES
Definition: resource.h:35
#define WM_INITDIALOG
Definition: winuser.h:1721
#define LOWORD(l)
Definition: pedump.c:82
#define IDC_KILOBYTES
Definition: resource.h:27

Referenced by MainDialogProc().