ReactOS 0.4.16-dev-340-g0540c21
richedit.c File Reference
#include <stdarg.h>
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winreg.h"
#include "winerror.h"
#include "winuser.h"
#include "richedit.h"
#include "shlwapi.h"
#include "wine/debug.h"
Include dependency graph for richedit.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (richedit)
 
LRESULT WINAPI RichEdit10ANSIWndProc (HWND, UINT, WPARAM, LPARAM)
 
static BOOL RICHED32_Register (void)
 
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 
HRESULT WINAPI DllGetVersion (DLLVERSIONINFO *pdvi)
 

Function Documentation

◆ DllGetVersion()

HRESULT WINAPI DllGetVersion ( DLLVERSIONINFO pdvi)

Definition at line 85 of file richedit.c.

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}
#define E_INVALIDARG
Definition: ddrawi.h:101
#define S_OK
Definition: intsafe.h:52
#define TRACE(s)
Definition: solgame.cpp:4
DWORD dwMajorVersion
Definition: shlwapi.h:1983
DWORD dwBuildNumber
Definition: shlwapi.h:1985
DWORD dwMinorVersion
Definition: shlwapi.h:1984
DWORD dwPlatformID
Definition: shlwapi.h:1986

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  lpvReserved 
)

Definition at line 63 of file richedit.c.

64{
65 TRACE("\n");
66 switch (fdwReason)
67 {
70 return RICHED32_Register();
71
73 if (lpvReserved) break;
75 break;
76 }
77 return TRUE;
78}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
static IN DWORD IN LPVOID lpvReserved
static BOOL RICHED32_Register(void)
Definition: richedit.c:44
#define RICHEDIT_CLASS10A
Definition: richedit.h:52
BOOL WINAPI UnregisterClassA(_In_ LPCSTR, HINSTANCE)

◆ RICHED32_Register()

static BOOL RICHED32_Register ( void  )
static

Definition at line 44 of file richedit.c.

45{
46 WNDCLASSA wndClass;
47
48 ZeroMemory(&wndClass, sizeof(WNDCLASSA));
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}
LRESULT WINAPI RichEdit10ANSIWndProc(HWND, UINT, WPARAM, LPARAM)
Definition: editor.c:5163
HBRUSH hbrBackground
Definition: winuser.h:3173
HCURSOR hCursor
Definition: winuser.h:3172
int cbWndExtra
Definition: winuser.h:3169
UINT style
Definition: winuser.h:3166
LPCSTR lpszClassName
Definition: winuser.h:3175
WNDPROC lpfnWndProc
Definition: winuser.h:3167
int cbClsExtra
Definition: winuser.h:3168
#define ZeroMemory
Definition: winbase.h:1737
#define CS_VREDRAW
Definition: winuser.h:658
#define COLOR_WINDOW
Definition: winuser.h:921
#define CS_HREDRAW
Definition: winuser.h:653
#define IDC_ARROW
Definition: winuser.h:687
#define CS_DBLCLKS
Definition: winuser.h:651
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
#define CS_GLOBALCLASS
Definition: winuser.h:652
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
Definition: cursoricon.c:2142
char * LPSTR
Definition: xmlstorage.h:182

Referenced by DllMain().

◆ RichEdit10ANSIWndProc()

LRESULT WINAPI RichEdit10ANSIWndProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 5163 of file editor.c.

5164{
5165 if (msg == WM_NCCREATE && !GetWindowLongPtrW(hWnd, 0))
5166 {
5168
5169 TRACE("WM_NCCREATE: hWnd %p style 0x%08x\n", hWnd, pcs->style);
5170 return create_windowed_editor( hWnd, pcs, TRUE );
5171 }
5173}
#define msg(x)
Definition: auth_time.c:54
HWND hWnd
Definition: settings.c:17
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
static BOOL create_windowed_editor(HWND hwnd, CREATESTRUCTW *create, BOOL emulate_10)
Definition: editor.c:4994
LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: editor.c:5155
#define GetWindowLongPtrW
Definition: winuser.h:4832
#define WM_NCCREATE
Definition: winuser.h:1686

Referenced by RICHED32_Register().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( richedit  )