ReactOS
0.4.16-dev-927-g467dec4
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
m
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
_
a
b
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
richedit.c
Go to the documentation of this file.
1
/*
2
* RichEdit32 functions
3
*
4
* This module is a simple wrapper for the RichEdit 2.0 control
5
*
6
* Copyright 2000 by Jean-Claude Batista
7
* Copyright 2005 Mike McCormack
8
*
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Lesser General Public
11
* License as published by the Free Software Foundation; either
12
* version 2.1 of the License, or (at your option) any later version.
13
*
14
* This library is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* Lesser General Public License for more details.
18
*
19
* You should have received a copy of the GNU Lesser General Public
20
* License along with this library; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22
*/
23
24
#include <stdarg.h>
25
#include <string.h>
26
#include "
windef.h
"
27
#include "
winbase.h
"
28
#include "
wingdi.h
"
29
#include "
winreg.h
"
30
#include "
winerror.h
"
31
#include "
winuser.h
"
32
#include "
richedit.h
"
33
#include "
shlwapi.h
"
34
35
#include "
wine/debug.h
"
36
37
WINE_DEFAULT_DEBUG_CHANNEL
(richedit);
38
39
/* Window procedure of the RichEdit 1.0 control in riched20.dll */
40
extern
LRESULT
WINAPI
RichEdit10ANSIWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
41
42
43
/* Registers the window class. */
44
static
BOOL
RICHED32_Register
(
void
)
45
{
46
WNDCLASSA
wndClass;
47
48
ZeroMemory
(&wndClass,
sizeof
(
WNDCLASSA
));
49
wndClass.
style
=
CS_DBLCLKS
|
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
;
50
wndClass.
lpfnWndProc
=
RichEdit10ANSIWndProc
;
51
wndClass.
cbClsExtra
= 0;
52
wndClass.
cbWndExtra
=
sizeof
(
void
*);
53
wndClass.
hCursor
=
LoadCursorA
(0, (
LPSTR
)
IDC_ARROW
);
54
wndClass.
hbrBackground
= (HBRUSH)(
COLOR_WINDOW
+ 1);
55
wndClass.
lpszClassName
=
RICHEDIT_CLASS10A
;
/* WC_RICHED32A; */
56
57
RegisterClassA
(&wndClass);
58
59
return
TRUE
;
60
}
61
62
/* Initialization function */
63
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
64
{
65
TRACE
(
"\n"
);
66
switch
(
fdwReason
)
67
{
68
case
DLL_PROCESS_ATTACH
:
69
DisableThreadLibraryCalls
(hinstDLL);
70
return
RICHED32_Register
();
71
72
case
DLL_PROCESS_DETACH
:
73
if
(
lpvReserved
)
break
;
74
UnregisterClassA
(
RICHEDIT_CLASS10A
,
NULL
);
75
break
;
76
}
77
return
TRUE
;
78
}
79
80
/***********************************************************************
81
* DllGetVersion [RICHED32.2]
82
*
83
* Retrieves version information
84
*/
85
HRESULT
WINAPI
DllGetVersion
(
DLLVERSIONINFO
*pdvi)
86
{
87
TRACE
(
"\n"
);
88
89
if
(pdvi->
cbSize
!=
sizeof
(
DLLVERSIONINFO
))
90
return
E_INVALIDARG
;
91
92
pdvi->
dwMajorVersion
= 4;
93
pdvi->
dwMinorVersion
= 0;
94
pdvi->
dwBuildNumber
= 0;
95
pdvi->
dwPlatformID
= 0;
96
97
return
S_OK
;
98
}
fdwReason
static DWORD const fdwReason
Definition:
appcrt_dllmain.cpp:57
WINE_DEFAULT_DEBUG_CHANNEL
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition:
precomp.h:23
E_INVALIDARG
#define E_INVALIDARG
Definition:
ddrawi.h:101
NULL
#define NULL
Definition:
types.h:112
TRUE
#define TRUE
Definition:
types.h:120
DLL_PROCESS_ATTACH
#define DLL_PROCESS_ATTACH
Definition:
compat.h:131
DLL_PROCESS_DETACH
#define DLL_PROCESS_DETACH
Definition:
compat.h:130
DisableThreadLibraryCalls
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition:
loader.c:85
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
HRESULT
Definition:
mshtmhst.idl:286
void
Definition:
nsiface.idl:2307
S_OK
#define S_OK
Definition:
intsafe.h:52
lpvReserved
static IN DWORD IN LPVOID lpvReserved
Definition:
load_notifications.c:17
UINT
unsigned int UINT
Definition:
ndis.h:50
RICHED32_Register
static BOOL RICHED32_Register(void)
Definition:
richedit.c:44
DllMain
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
Definition:
richedit.c:63
RichEdit10ANSIWndProc
LRESULT WINAPI RichEdit10ANSIWndProc(HWND, UINT, WPARAM, LPARAM)
Definition:
txthost.c:1796
DllGetVersion
HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *pdvi)
Definition:
richedit.c:85
richedit.h
RICHEDIT_CLASS10A
#define RICHEDIT_CLASS10A
Definition:
richedit.h:52
debug.h
shlwapi.h
TRACE
#define TRACE(s)
Definition:
solgame.cpp:4
_DllVersionInfo
Definition:
shlwapi.h:1998
_DllVersionInfo::dwMajorVersion
DWORD dwMajorVersion
Definition:
shlwapi.h:2000
_DllVersionInfo::dwBuildNumber
DWORD dwBuildNumber
Definition:
shlwapi.h:2002
_DllVersionInfo::dwMinorVersion
DWORD dwMinorVersion
Definition:
shlwapi.h:2001
_DllVersionInfo::cbSize
DWORD cbSize
Definition:
shlwapi.h:1999
_DllVersionInfo::dwPlatformID
DWORD dwPlatformID
Definition:
shlwapi.h:2003
_WNDCLASSA
Definition:
winuser.h:3165
_WNDCLASSA::hbrBackground
HBRUSH hbrBackground
Definition:
winuser.h:3173
_WNDCLASSA::hCursor
HCURSOR hCursor
Definition:
winuser.h:3172
_WNDCLASSA::cbWndExtra
int cbWndExtra
Definition:
winuser.h:3169
_WNDCLASSA::style
UINT style
Definition:
winuser.h:3166
_WNDCLASSA::lpszClassName
LPCSTR lpszClassName
Definition:
winuser.h:3175
_WNDCLASSA::lpfnWndProc
WNDPROC lpfnWndProc
Definition:
winuser.h:3167
_WNDCLASSA::cbClsExtra
int cbClsExtra
Definition:
winuser.h:3168
winbase.h
ZeroMemory
#define ZeroMemory
Definition:
winbase.h:1743
windef.h
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
LRESULT
LONG_PTR LRESULT
Definition:
windef.h:209
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
WINAPI
#define WINAPI
Definition:
msvc.h:6
winerror.h
wingdi.h
winreg.h
winuser.h
CS_VREDRAW
#define CS_VREDRAW
Definition:
winuser.h:658
COLOR_WINDOW
#define COLOR_WINDOW
Definition:
winuser.h:921
UnregisterClassA
BOOL WINAPI UnregisterClassA(_In_ LPCSTR, HINSTANCE)
CS_HREDRAW
#define CS_HREDRAW
Definition:
winuser.h:653
IDC_ARROW
#define IDC_ARROW
Definition:
winuser.h:687
CS_DBLCLKS
#define CS_DBLCLKS
Definition:
winuser.h:651
RegisterClassA
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
CS_GLOBALCLASS
#define CS_GLOBALCLASS
Definition:
winuser.h:652
LoadCursorA
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
Definition:
cursoricon.c:2176
LPSTR
char * LPSTR
Definition:
xmlstorage.h:182
dll
win32
riched32
richedit.c
Generated on Sun Mar 30 2025 06:04:46 for ReactOS by
1.9.6