ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
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
:
23
INT_PTR
m_DialogID
;
24
HWND
m_hListBox
;
25
HFONT
m_hBoldFont
;
26
HBITMAP
m_hArrowBmp
;
27
BITMAP
m_ArrowBmp
;
28
INT
m_PointedItem
;
29
30
public
:
31
enum
{
IDD
=
IDD_DIALOG
};
32
33
RunOnceExInstance
&
m_RunOnceExInst
;
34
35
ProgressDlg
(
_In_
RunOnceExInstance
&RunOnceExInst);
36
37
BOOL
RunDialogBox
();
38
39
void
CalcTextRect
(
_In_
LPCWSTR
lpText,
_Inout_
RECT
*pRect);
40
41
void
ResizeListBoxAndDialog
(
_In_
int
NewHeight);
42
43
BOOL
ProcessWindowMessage
(
_In_
HWND
hwnd
,
_In_
UINT
message
,
_In_
WPARAM
wParam
,
44
_In_
LPARAM
lParam
,
_Out_
LRESULT
& lResult,
45
_In_
DWORD
dwMsgMapID);
46
};
ProgressDlg
Definition:
dialog.h:21
ProgressDlg::m_hListBox
HWND m_hListBox
Definition:
dialog.h:24
ProgressDlg::IDD
@ IDD
Definition:
dialog.h:31
ProgressDlg::m_ArrowBmp
BITMAP m_ArrowBmp
Definition:
dialog.h:27
ProgressDlg::m_hBoldFont
HFONT m_hBoldFont
Definition:
dialog.h:25
ProgressDlg::RunDialogBox
BOOL RunDialogBox()
Definition:
dialog.cpp:30
ProgressDlg::m_DialogID
INT_PTR m_DialogID
Definition:
dialog.h:23
ProgressDlg::m_hArrowBmp
HBITMAP m_hArrowBmp
Definition:
dialog.h:26
ProgressDlg::ProcessWindowMessage
BOOL ProcessWindowMessage(_In_ HWND hwnd, _In_ UINT message, _In_ WPARAM wParam, _In_ LPARAM lParam, _Out_ LRESULT &lResult, _In_ DWORD dwMsgMapID)
Definition:
dialog.cpp:91
ProgressDlg::CalcTextRect
void CalcTextRect(_In_ LPCWSTR lpText, _Inout_ RECT *pRect)
Definition:
dialog.cpp:40
ProgressDlg::m_RunOnceExInst
RunOnceExInstance & m_RunOnceExInst
Definition:
dialog.h:33
ProgressDlg::ResizeListBoxAndDialog
void ResizeListBoxAndDialog(_In_ int NewHeight)
Definition:
dialog.cpp:62
ProgressDlg::m_PointedItem
INT m_PointedItem
Definition:
dialog.h:28
RunOnceExInstance
Definition:
registry.h:88
wParam
WPARAM wParam
Definition:
combotst.c:138
lParam
LPARAM lParam
Definition:
combotst.c:139
IDD_DIALOG
#define IDD_DIALOG
Definition:
resource.h:5
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
HBITMAP
static HBITMAP
Definition:
button.c:44
HFONT
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
UINT
unsigned int UINT
Definition:
ndis.h:50
_Inout_
#define _Inout_
Definition:
no_sal2.h:162
_Out_
#define _Out_
Definition:
no_sal2.h:160
_In_
#define _In_
Definition:
no_sal2.h:158
_BITMAP
Definition:
bl.h:1331
message
Definition:
tftpd.h:60
tagRECT
Definition:
windef.h:305
INT_PTR
int32_t INT_PTR
Definition:
typedefs.h:64
INT
int32_t INT
Definition:
typedefs.h:58
resource.h
hwnd
_In_ LONG _In_ HWND hwnd
Definition:
winddi.h:4023
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
LRESULT
LONG_PTR LRESULT
Definition:
windef.h:209
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
LPCWSTR
const WCHAR * LPCWSTR
Definition:
xmlstorage.h:185
dll
win32
iernonce
dialog.h
Generated on Tue Nov 26 2024 06:03:52 for ReactOS by
1.9.6