ReactOS 0.4.16-dev-297-gc569aee
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
20class ProgressDlg : public CDialogImpl<ProgressDlg>
21{
22private:
29
30public:
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};
HWND m_hListBox
Definition: dialog.h:24
BITMAP m_ArrowBmp
Definition: dialog.h:27
HFONT m_hBoldFont
Definition: dialog.h:25
BOOL RunDialogBox()
Definition: dialog.cpp:30
INT_PTR m_DialogID
Definition: dialog.h:23
HBITMAP m_hArrowBmp
Definition: dialog.h:26
BOOL ProcessWindowMessage(_In_ HWND hwnd, _In_ UINT message, _In_ WPARAM wParam, _In_ LPARAM lParam, _Out_ LRESULT &lResult, _In_ DWORD dwMsgMapID)
Definition: dialog.cpp:91
void CalcTextRect(_In_ LPCWSTR lpText, _Inout_ RECT *pRect)
Definition: dialog.cpp:40
RunOnceExInstance & m_RunOnceExInst
Definition: dialog.h:33
void ResizeListBoxAndDialog(_In_ int NewHeight)
Definition: dialog.cpp:62
INT m_PointedItem
Definition: dialog.h:28
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define IDD_DIALOG
Definition: resource.h:5
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
static HBITMAP
Definition: button.c:44
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
unsigned int UINT
Definition: ndis.h:50
#define _Inout_
Definition: no_sal2.h:162
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
Definition: bl.h:1331
Definition: tftpd.h:60
int32_t INT_PTR
Definition: typedefs.h:64
int32_t INT
Definition: typedefs.h:58
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185