ReactOS  0.4.15-dev-1197-g8081ba9
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 }
DWORD dwMinorVersion
Definition: shlwapi.h:1956
DWORD dwBuildNumber
Definition: shlwapi.h:1957
#define E_INVALIDARG
Definition: ddrawi.h:101
DWORD dwMajorVersion
Definition: shlwapi.h:1955
#define TRACE(s)
Definition: solgame.cpp:4
DWORD dwPlatformID
Definition: shlwapi.h:1958
#define S_OK
Definition: intsafe.h:51

◆ 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  {
68  case DLL_PROCESS_ATTACH:
69  DisableThreadLibraryCalls(hinstDLL);
70  return RICHED32_Register();
71 
72  case DLL_PROCESS_DETACH:
73  if (lpvReserved) break;
75  break;
76  }
77  return TRUE;
78 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
static IN DWORD IN LPVOID lpvReserved
smooth NULL
Definition: ftsmooth.c:416
#define DLL_PROCESS_DETACH
Definition: compat.h:130
#define TRACE(s)
Definition: solgame.cpp:4
#define RICHEDIT_CLASS10A
Definition: richedit.h:52
BOOL WINAPI UnregisterClassA(_In_ LPCSTR, HINSTANCE)
static BOOL RICHED32_Register(void)
Definition: richedit.c:44

◆ 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 }
#define TRUE
Definition: types.h:120
int cbClsExtra
Definition: winuser.h:3140
#define ZeroMemory
Definition: winbase.h:1648
#define CS_HREDRAW
Definition: winuser.h:648
HBRUSH hbrBackground
Definition: winuser.h:3145
char * LPSTR
Definition: xmlstorage.h:182
#define COLOR_WINDOW
Definition: winuser.h:908
int cbWndExtra
Definition: winuser.h:3141
HCURSOR hCursor
Definition: winuser.h:3144
LRESULT WINAPI RichEdit10ANSIWndProc(HWND, UINT, WPARAM, LPARAM)
Definition: editor.c:5105
#define CS_VREDRAW
Definition: winuser.h:653
#define CS_GLOBALCLASS
Definition: winuser.h:647
#define CS_DBLCLKS
Definition: winuser.h:646
LPCSTR lpszClassName
Definition: winuser.h:3147
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
Definition: cursoricon.c:2059
UINT style
Definition: winuser.h:3138
#define RICHEDIT_CLASS10A
Definition: richedit.h:52
WNDPROC lpfnWndProc
Definition: winuser.h:3139
#define IDC_ARROW
Definition: winuser.h:682
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)

Referenced by DllMain().

◆ RichEdit10ANSIWndProc()

LRESULT WINAPI RichEdit10ANSIWndProc ( HWND  ,
UINT  ,
WPARAM  ,
LPARAM   
)

Definition at line 5105 of file editor.c.

5106 {
5107  if (msg == WM_NCCREATE && !GetWindowLongPtrW(hWnd, 0))
5108  {
5110 
5111  TRACE("WM_NCCREATE: hWnd %p style 0x%08x\n", hWnd, pcs->style);
5112  return create_windowed_editor( hWnd, pcs, TRUE );
5113  }
5115 }
#define TRUE
Definition: types.h:120
HWND hWnd
Definition: settings.c:17
#define GetWindowLongPtrW
Definition: winuser.h:4804
#define WM_NCCREATE
Definition: winuser.h:1665
static UINT WPARAM wParam
Definition: editor.c:2867
#define TRACE(s)
Definition: solgame.cpp:4
static UINT WPARAM LPARAM lParam
Definition: editor.c:2867
LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: editor.c:5097
static BOOL create_windowed_editor(HWND hwnd, CREATESTRUCTW *create, BOOL emulate_10)
Definition: editor.c:4936
#define msg(x)
Definition: auth_time.c:54

Referenced by RICHED32_Register().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( richedit  )