ReactOS  0.4.15-dev-5499-g1341c38
dialog.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS system libraries
3  * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE: Classes for displaying progress dialog.
5  * COPYRIGHT: Copyright 2021 He Yang <1160386205@qq.com>
6  */
7 
8 #pragma once
9 
10 #include <atlbase.h>
11 #include <atlwin.h>
12 
13 #include "resource.h"
14 #include "registry.h"
15 
16 // When wParam < item count ==> wParam is item index (0 based)
17 // wParam = item count ==> all finished, lParam = bSuccess
18 #define WM_SETINDEX (WM_USER + 1)
19 
20 class ProgressDlg : public CDialogImpl<ProgressDlg>
21 {
22 private:
29 
30 public:
31  enum { IDD = IDD_DIALOG };
32 
34 
35  ProgressDlg(_In_ RunOnceExInstance &RunOnceExInst);
36 
38 
39  void CalcTextRect(_In_ LPCWSTR lpText, _Inout_ RECT *pRect);
40 
41  void ResizeListBoxAndDialog(_In_ int NewHeight);
42 
44  _In_ LPARAM lParam, _Out_ LRESULT& lResult,
45  _In_ DWORD dwMsgMapID);
46 };
Definition: tftpd.h:59
#define IDD_DIALOG
Definition: resource.h:5
HBITMAP m_hArrowBmp
Definition: dialog.h:26
#define _Inout_
Definition: ms_sal.h:378
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define _Out_
Definition: ms_sal.h:345
void CalcTextRect(_In_ LPCWSTR lpText, _Inout_ RECT *pRect)
Definition: dialog.cpp:40
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT_PTR
Definition: typedefs.h:64
int32_t INT
Definition: typedefs.h:58
WPARAM wParam
Definition: combotst.c:138
ProgressDlg(_In_ RunOnceExInstance &RunOnceExInst)
Definition: dialog.cpp:23
BITMAP m_ArrowBmp
Definition: dialog.h:27
INT m_PointedItem
Definition: dialog.h:28
unsigned int BOOL
Definition: ntddk_ex.h:94
#define _In_
Definition: ms_sal.h:308
LONG_PTR LPARAM
Definition: windef.h:208
BOOL RunDialogBox()
Definition: dialog.cpp:30
unsigned long DWORD
Definition: ntddk_ex.h:95
INT_PTR m_DialogID
Definition: dialog.h:23
BOOL ProcessWindowMessage(_In_ HWND hwnd, _In_ UINT message, _In_ WPARAM wParam, _In_ LPARAM lParam, _Out_ LRESULT &lResult, _In_ DWORD dwMsgMapID)
Definition: dialog.cpp:91
HFONT m_hBoldFont
Definition: dialog.h:25
void ResizeListBoxAndDialog(_In_ int NewHeight)
Definition: dialog.cpp:62
Definition: bl.h:1330
unsigned int UINT
Definition: ndis.h:50
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static HBITMAP
Definition: button.c:44
LONG_PTR LRESULT
Definition: windef.h:209
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4022
HWND m_hListBox
Definition: dialog.h:24
RunOnceExInstance & m_RunOnceExInst
Definition: dialog.h:33
LPARAM lParam
Definition: combotst.c:139