2000-05-07 22:23:41 +02:00
|
|
|
/*
|
|
|
|
* RichEdit32 functions
|
|
|
|
*
|
2001-02-14 22:43:06 +01:00
|
|
|
* This module is a simple wrapper for the edit controls.
|
2002-06-01 01:06:46 +02:00
|
|
|
* At the point, it is good only for application who use the RICHEDIT
|
2001-02-14 22:43:06 +01:00
|
|
|
* control to display RTF text.
|
2000-05-07 22:23:41 +02:00
|
|
|
*
|
|
|
|
* Copyright 2000 by Jean-Claude Batista
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2000-05-07 22:23:41 +02:00
|
|
|
*/
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
2001-01-26 21:43:40 +01:00
|
|
|
#include <string.h>
|
2000-11-30 02:31:28 +01:00
|
|
|
#include "windef.h"
|
2000-05-07 22:23:41 +02:00
|
|
|
#include "winbase.h"
|
2001-11-16 19:11:15 +01:00
|
|
|
#include "wingdi.h"
|
2001-11-06 23:31:19 +01:00
|
|
|
#include "winreg.h"
|
2000-05-07 22:23:41 +02:00
|
|
|
#include "winerror.h"
|
|
|
|
#include "riched32.h"
|
|
|
|
#include "richedit.h"
|
2001-12-11 01:30:17 +01:00
|
|
|
#define NO_SHLWAPI_STREAM
|
2000-09-29 03:03:30 +02:00
|
|
|
#include "shlwapi.h"
|
2000-05-07 22:23:41 +02:00
|
|
|
|
|
|
|
#include "rtf.h"
|
|
|
|
#include "rtf2text.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
2000-05-07 22:23:41 +02:00
|
|
|
|
|
|
|
#define ID_EDIT 1
|
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(richedit);
|
2000-05-07 22:23:41 +02:00
|
|
|
|
2003-01-15 00:43:41 +01:00
|
|
|
HANDLE RICHED32_hHeap = NULL;
|
|
|
|
/* LPSTR RICHED32_aSubclass = NULL; */
|
2004-05-04 04:54:30 +02:00
|
|
|
static WNDPROC lpfnEditWndProc = NULL;
|
|
|
|
static INT RTFInfoOffset = 0;
|
2000-05-07 22:23:41 +02:00
|
|
|
|
2003-03-15 01:12:42 +01:00
|
|
|
#define TRACE_EDIT_MSG32(str) \
|
2002-01-14 20:44:07 +01:00
|
|
|
TRACE(\
|
2002-10-19 01:48:57 +02:00
|
|
|
"32 bit : " str ": hwnd=%p, wParam=%08x, lParam=%08x\n"\
|
2002-01-14 20:44:07 +01:00
|
|
|
, \
|
|
|
|
hwnd, (UINT)wParam, (UINT)lParam)
|
|
|
|
|
2004-01-30 23:56:33 +01:00
|
|
|
LPVOID* WINAPI CreateIRichEditOle();
|
2004-05-04 04:54:30 +02:00
|
|
|
VOID RICHEDIT_InitEditControlInfo(void);
|
2002-01-14 20:44:07 +01:00
|
|
|
|
2000-05-11 23:46:51 +02:00
|
|
|
/***********************************************************************
|
2002-11-05 00:53:41 +01:00
|
|
|
* DllMain [Internal] Initializes the internal 'RICHED32.DLL'.
|
2000-05-07 22:23:41 +02:00
|
|
|
*
|
|
|
|
* PARAMS
|
2000-07-16 17:44:22 +02:00
|
|
|
* hinstDLL [I] handle to the DLL's instance
|
2000-05-07 22:23:41 +02:00
|
|
|
* fdwReason [I]
|
2000-07-16 17:44:22 +02:00
|
|
|
* lpvReserved [I] reserved, must be NULL
|
2000-05-07 22:23:41 +02:00
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: TRUE
|
|
|
|
* Failure: FALSE
|
|
|
|
*/
|
|
|
|
|
2002-11-05 00:53:41 +01:00
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
2000-05-07 22:23:41 +02:00
|
|
|
{
|
2002-06-01 01:06:46 +02:00
|
|
|
TRACE("\n");
|
2001-01-17 23:03:18 +01:00
|
|
|
switch (fdwReason)
|
|
|
|
{
|
|
|
|
case DLL_PROCESS_ATTACH:
|
2003-06-30 22:53:48 +02:00
|
|
|
DisableThreadLibraryCalls(hinstDLL);
|
2001-01-17 23:03:18 +01:00
|
|
|
/* create private heap */
|
|
|
|
RICHED32_hHeap = HeapCreate (0, 0x10000, 0);
|
2004-05-04 04:54:30 +02:00
|
|
|
/* Retrieve edit control class info */
|
|
|
|
RICHEDIT_InitEditControlInfo();
|
2001-01-17 23:03:18 +01:00
|
|
|
/* register the Rich Edit class */
|
|
|
|
RICHED32_Register ();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
|
|
/* unregister all common control classes */
|
|
|
|
RICHED32_Unregister ();
|
|
|
|
HeapDestroy (RICHED32_hHeap);
|
2003-01-15 00:43:41 +01:00
|
|
|
RICHED32_hHeap = NULL;
|
2001-01-17 23:03:18 +01:00
|
|
|
break;
|
2000-05-07 22:23:41 +02:00
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2002-04-23 01:08:19 +02:00
|
|
|
/* Support routines for window procedure */
|
|
|
|
INT RICHEDIT_GetTextRange(HWND hwnd,TEXTRANGEA *tr);
|
|
|
|
INT RICHEDIT_GetSelText(HWND hwnd,LPSTR lpstrBuffer);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-01-30 23:56:33 +01:00
|
|
|
typedef struct _RTFControl_info
|
|
|
|
{
|
|
|
|
HWND hwndParent;
|
|
|
|
char* rtfBuffer;
|
|
|
|
RTF_Info *parser;
|
|
|
|
} RTFControl_Info;
|
|
|
|
|
2000-05-07 22:23:41 +02:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* DESCRIPTION:
|
|
|
|
* Window procedure of the RichEdit control.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
static LRESULT WINAPI RICHED32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
|
|
|
|
LPARAM lParam)
|
|
|
|
{
|
|
|
|
LONG newstyle = 0;
|
2002-06-01 01:06:46 +02:00
|
|
|
LONG style = 0;
|
2004-01-30 23:56:33 +01:00
|
|
|
RTFControl_Info *info;
|
2002-04-23 01:08:19 +02:00
|
|
|
CHARRANGE *cr;
|
2004-01-30 23:56:33 +01:00
|
|
|
|
2004-05-04 04:54:30 +02:00
|
|
|
info = (RTFControl_Info *) GetWindowLongW( hwnd, RTFInfoOffset );
|
|
|
|
|
2004-01-30 23:56:33 +01:00
|
|
|
TRACE("uMsg: 0x%x hwnd: %p\n",uMsg,hwnd);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-05-07 22:23:41 +02:00
|
|
|
switch (uMsg)
|
|
|
|
{
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2003-02-19 04:40:33 +01:00
|
|
|
case WM_CREATE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_CREATE Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2003-02-19 04:40:33 +01:00
|
|
|
|
|
|
|
case WM_NCCREATE :
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_NCCREATE");
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-01-30 23:56:33 +01:00
|
|
|
info = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
|
|
|
|
sizeof (RTFControl_Info));
|
|
|
|
info->parser = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
|
|
|
|
sizeof (RTF_Info));
|
2004-05-04 04:54:30 +02:00
|
|
|
SetWindowLongW( hwnd, RTFInfoOffset, (LONG)info );
|
2004-01-30 23:56:33 +01:00
|
|
|
|
2000-05-07 22:23:41 +02:00
|
|
|
/* remove SCROLLBARS from the current window style */
|
2004-01-30 23:56:33 +01:00
|
|
|
info->hwndParent = ((LPCREATESTRUCTA) lParam)->hwndParent;
|
2002-01-14 20:44:07 +01:00
|
|
|
|
2000-05-07 22:23:41 +02:00
|
|
|
newstyle = style = ((LPCREATESTRUCTA) lParam)->style;
|
|
|
|
newstyle &= ~WS_HSCROLL;
|
|
|
|
newstyle &= ~WS_VSCROLL;
|
|
|
|
newstyle &= ~ES_AUTOHSCROLL;
|
|
|
|
newstyle &= ~ES_AUTOVSCROLL;
|
2003-02-19 04:40:33 +01:00
|
|
|
SetWindowLongA(hwnd,GWL_STYLE, newstyle);
|
2002-04-23 01:08:19 +02:00
|
|
|
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2002-01-14 20:44:07 +01:00
|
|
|
case WM_SETFOCUS :
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_SETFOCUS");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
case WM_SIZE :
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_SIZE");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-05-07 22:23:41 +02:00
|
|
|
case WM_COMMAND :
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_COMMAND");
|
2002-01-14 20:44:07 +01:00
|
|
|
switch(HIWORD(wParam)) {
|
|
|
|
case EN_CHANGE:
|
|
|
|
case EN_HSCROLL:
|
|
|
|
case EN_KILLFOCUS:
|
|
|
|
case EN_SETFOCUS:
|
|
|
|
case EN_UPDATE:
|
|
|
|
case EN_VSCROLL:
|
2004-01-30 23:56:33 +01:00
|
|
|
return SendMessageA(info->hwndParent, WM_COMMAND,
|
2002-01-14 20:44:07 +01:00
|
|
|
wParam, (LPARAM)(hwnd));
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2002-01-14 20:44:07 +01:00
|
|
|
case EN_ERRSPACE:
|
|
|
|
case EN_MAXTEXT:
|
|
|
|
MessageBoxA (hwnd, "RichEdit control out of space.",
|
2000-05-07 22:23:41 +02:00
|
|
|
"ERROR", MB_OK | MB_ICONSTOP) ;
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0 ;
|
|
|
|
}
|
2002-06-01 01:06:46 +02:00
|
|
|
|
|
|
|
case EM_STREAMIN:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_STREAMIN");
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-05-07 22:23:41 +02:00
|
|
|
/* setup the RTF parser */
|
2004-01-30 23:56:33 +01:00
|
|
|
RTFSetEditStream(info->parser,( EDITSTREAM*)lParam);
|
|
|
|
info->parser->rtfFormat = wParam&(SF_TEXT|SF_RTF);
|
2004-08-27 21:15:08 +02:00
|
|
|
info->parser->hwndEdit = hwnd;
|
2004-01-30 23:56:33 +01:00
|
|
|
WriterInit(info->parser);
|
|
|
|
RTFInit (info->parser);
|
|
|
|
BeginFile(info->parser);
|
2000-05-07 22:23:41 +02:00
|
|
|
|
|
|
|
/* do the parsing */
|
2004-01-30 23:56:33 +01:00
|
|
|
RTFRead (info->parser);
|
2004-08-27 21:15:08 +02:00
|
|
|
RTFFlushOutputBuffer( info->parser );
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2004-08-27 21:15:08 +02:00
|
|
|
/* put the cursor at the top */
|
|
|
|
SendMessageA( hwnd, EM_SETSEL, 0, 0 );
|
2002-06-01 01:06:46 +02:00
|
|
|
|
|
|
|
return 0;
|
2002-01-14 20:44:07 +01:00
|
|
|
|
2002-04-23 01:08:19 +02:00
|
|
|
/* Messages specific to Richedit controls */
|
2002-01-14 20:44:07 +01:00
|
|
|
|
|
|
|
case EM_AUTOURLDETECT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_AUTOURLDETECT Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_CANPASTE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_CANPASTE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_CANREDO:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_CANREDO Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_DISPLAYBAND:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_DISPLAYBAND Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_EXGETSEL:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_EXGETSEL -> EM_GETSEL");
|
2002-04-23 01:08:19 +02:00
|
|
|
cr = (VOID *) lParam;
|
2004-05-04 04:54:30 +02:00
|
|
|
CallWindowProcA(lpfnEditWndProc, hwnd, EM_GETSEL, (INT)&cr->cpMin, (INT)&cr->cpMax);
|
2002-04-23 01:08:19 +02:00
|
|
|
TRACE("cpMin: 0x%x cpMax: 0x%x\n",(INT)cr->cpMin,(INT)cr->cpMax);
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_EXLIMITTEXT:
|
2002-08-16 03:41:32 +02:00
|
|
|
{
|
|
|
|
DWORD limit = lParam;
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_EXLIMITTEXT");
|
2002-08-16 03:41:32 +02:00
|
|
|
if (limit > 65534)
|
|
|
|
{
|
|
|
|
limit = 0xFFFFFFFF;
|
|
|
|
}
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, EM_SETLIMITTEXT, limit, 0);
|
2002-08-16 03:41:32 +02:00
|
|
|
}
|
2002-01-14 20:44:07 +01:00
|
|
|
|
|
|
|
case EM_EXLINEFROMCHAR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_EXLINEFROMCHAR -> LINEFROMCHAR");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, EM_LINEFROMCHAR, lParam, wParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
|
|
|
|
case EM_EXSETSEL:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_EXSETSEL -> EM_SETSEL");
|
2002-04-23 01:08:19 +02:00
|
|
|
cr = (VOID *) lParam;
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, EM_SETSEL, cr->cpMin, cr->cpMax);
|
2002-01-14 20:44:07 +01:00
|
|
|
|
|
|
|
case EM_FINDTEXT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_FINDTEXT Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_FINDTEXTEX:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_FINDTEXTEX Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_FINDTEXTEXW:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_FINDTEXTEXW Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_FINDTEXTW:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_FINDTEXTW Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_FINDWORDBREAK:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_FINDWORDBREAK Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_FORMATRANGE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_FORMATRANGE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETAUTOURLDETECT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETAUTOURLDETECT Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETBIDIOPTIONS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETBIDIOPTIONS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETCHARFORMAT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETCHARFORMAT Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETEDITSTYLE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETEDITSTYLE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETEVENTMASK:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETEVENTMASK Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETIMECOLOR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETIMECOLOR Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETIMECOMPMODE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETIMECOMPMODE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETIMEOPTIONS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETIMEOPTIONS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETLANGOPTIONS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("STUB: EM_GETLANGOPTIONS");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETOLEINTERFACE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETOLEINTERFACE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETOPTIONS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETOPTIONS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETPARAFORMAT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETPARAFORMAT Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETPUNCTUATION:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETPUNCTUATION Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETREDONAME:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETREDONAME Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETSCROLLPOS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETSCROLLPOS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETSELTEXT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETSELTEXT");
|
2004-05-04 04:54:30 +02:00
|
|
|
return RICHEDIT_GetSelText(hwnd,(void *)lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
|
|
|
|
case EM_GETTEXTEX:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETTEXTEX Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETTEXTLENGTHEX:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETTEXTLENGTHEX Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETTEXTMODE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETTEXTMODE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETTEXTRANGE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETTEXTRANGE");
|
2004-05-04 04:54:30 +02:00
|
|
|
return RICHEDIT_GetTextRange(hwnd,(TEXTRANGEA *)lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
|
|
|
|
case EM_GETTYPOGRAPHYOPTIONS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETTYPOGRAPHYOPTIONS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETUNDONAME:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETUNDONAME Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETWORDBREAKPROCEX:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETWORDBREAKPROCEX Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETWORDWRAPMODE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETWORDWRAPMODE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_GETZOOM:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETZOOM Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_HIDESELECTION:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_HIDESELECTION Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_PASTESPECIAL:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_PASTESPECIAL Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_RECONVERSION:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_RECONVERSION Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_REDO:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_REDO Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_REQUESTRESIZE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_REQUESTRESIZE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SELECTIONTYPE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SELECTIONTYPE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETBIDIOPTIONS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETBIDIOPTIONS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETBKGNDCOLOR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETBKGNDCOLOR Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETCHARFORMAT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETCHARFORMAT Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETEDITSTYLE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETEDITSTYLE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETEVENTMASK:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETEVENTMASK Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETFONTSIZE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETFONTSIZE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETIMECOLOR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETIMECOLO Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETIMEOPTIONS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETIMEOPTIONS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETLANGOPTIONS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETLANGOPTIONS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETOLECALLBACK:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETOLECALLBACK Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETOPTIONS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETOPTIONS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETPALETTE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETPALETTE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETPARAFORMAT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETPARAFORMAT Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETPUNCTUATION:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETPUNCTUATION Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETSCROLLPOS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETSCROLLPOS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETTARGETDEVICE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETTARGETDEVICE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETTEXTEX:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETTEXTEX Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETTEXTMODE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETTEXTMODE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETTYPOGRAPHYOPTIONS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETTYPOGRAPHYOPTIONS Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETUNDOLIMIT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETUNDOLIMIT Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETWORDBREAKPROCEX:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETWORDBREAKPROCEX Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETWORDWRAPMODE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETWORDWRAPMODE Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SETZOOM:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETZOOM Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_SHOWSCROLLBAR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SHOWSCROLLBAR Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_STOPGROUPTYPING:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_STOPGROUPTYPING Ignored");
|
2002-01-14 20:44:07 +01:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
case EM_STREAMOUT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_STREAMOUT Ignored");
|
2002-04-23 01:08:19 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
/* Messages dispatched to the edit control */
|
|
|
|
case EM_CANUNDO:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_CANUNDO Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_CHARFROMPOS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_CHARFROMPOS Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_EMPTYUNDOBUFFER:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_EMPTYUNDOBUFFER Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_FMTLINES:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_FMTLINES Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETFIRSTVISIBLELINE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETFIRSTVISIBLELINE Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETHANDLE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETHANDLE Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
/* case EM_GETIMESTATUS:*/
|
|
|
|
case EM_GETLIMITTEXT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETLIMITTEXT Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETLINE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETLINE Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETLINECOUNT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETLINECOUNT Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETMARGINS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETMARGINS Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETMODIFY:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETMODIFY Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETPASSWORDCHAR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETPASSWORDCHAR Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETRECT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETRECT Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETSEL:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETSEL Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETTHUMB:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETTHUMB Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_GETWORDBREAKPROC:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_GETWORDBREAKPROC Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_LINEFROMCHAR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_LINEFROMCHAR Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_LINEINDEX:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_LINEINDEX Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_LINELENGTH:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_LINELENGTH Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_LINESCROLL:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_LINESCROLL Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_POSFROMCHAR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_POSFROMCHAR Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_REPLACESEL:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("case EM_REPLACESEL Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SCROLL:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("case EM_SCROLL Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SCROLLCARET:
|
2004-07-30 06:19:56 +02:00
|
|
|
case WM_USER+49: /* EM_SCROLLCARET too */
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SCROLLCARET Passed to edit control");
|
2004-07-30 06:19:56 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, EM_SCROLLCARET, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SETHANDLE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETHANDLE Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
/* case EM_SETIMESTATUS:*/
|
|
|
|
case EM_SETLIMITTEXT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETLIMITTEXT Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SETMARGINS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("case EM_SETMARGINS Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SETMODIFY:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETMODIFY Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SETPASSWORDCHAR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETPASSWORDCHAR Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SETREADONLY:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETREADONLY Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SETRECT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETRECT Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SETRECTNP:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETRECTNP Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SETSEL:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETSEL Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SETTABSTOPS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETTABSTOPS Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_SETWORDBREAKPROC:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_SETWORDBREAKPROC Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case EM_UNDO:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("EM_UNDO Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_STYLECHANGING:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_STYLECHANGING Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_STYLECHANGED:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_STYLECHANGED Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_GETTEXT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_GETTEXT Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_GETTEXTLENGTH:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_GETTEXTLENGTH Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_SETTEXT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_SETTEXT Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_CUT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_CUT Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_COPY:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_COPY Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_PASTE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_PASTE Passed to edit control");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
/* Messages passed to default handler. */
|
2003-02-19 04:40:33 +01:00
|
|
|
case WM_NCCALCSIZE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_NCCALCSIZE Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
case WM_NCPAINT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_NCPAINT Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
case WM_PAINT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_PAINT Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
case WM_ERASEBKGND:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_ERASEBKGND Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
case WM_KILLFOCUS:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_KILLFOCUS Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
case WM_DESTROY:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_DESTROY Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-06-01 01:06:46 +02:00
|
|
|
case WM_CHILDACTIVATE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_CHILDACTIVATE Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
|
|
|
|
case WM_WINDOWPOSCHANGING:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_WINDOWPOSCHANGING Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
case WM_WINDOWPOSCHANGED:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_WINDOWPOSCHANGED Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
/* case WM_INITIALUPDATE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_INITIALUPDATE Passed to default");
|
2002-01-14 20:44:07 +01:00
|
|
|
return DefWindowProcA( hwnd,uMsg,wParam,lParam); */
|
|
|
|
case WM_CTLCOLOREDIT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_CTLCOLOREDIT Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
case WM_SETCURSOR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_SETCURSOR Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
case WM_MOVE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_MOVE Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
case WM_SHOWWINDOW:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_SHOWWINDOW Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_PARENTNOTIFY:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_PARENTNOTIFY Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_SETREDRAW:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_SETREDRAW Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_NCDESTROY:
|
2004-05-04 04:54:30 +02:00
|
|
|
{
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_NCDESTROY Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
HeapFree( GetProcessHeap(), 0, info->parser );
|
|
|
|
HeapFree( GetProcessHeap(), 0, info );
|
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
|
|
|
}
|
|
|
|
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_NCHITTEST:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_NCHITTEST Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_CTLCOLORSTATIC:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_CTLCOLORSTATIC Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_NCMOUSEMOVE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_NCMOUSEMOVE Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-04-23 01:08:19 +02:00
|
|
|
case WM_CLEAR:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_CLEAR Passed to default");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-08-16 03:41:32 +02:00
|
|
|
/*
|
|
|
|
* used by IE in the EULA box
|
|
|
|
*/
|
|
|
|
case WM_ALTTABACTIVE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_ALTTABACTIVE");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-08-16 03:41:32 +02:00
|
|
|
case WM_GETDLGCODE:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_GETDLGCODE");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-08-16 03:41:32 +02:00
|
|
|
case WM_SETFONT:
|
2003-03-15 01:12:42 +01:00
|
|
|
TRACE_EDIT_MSG32("WM_SETFONT");
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2002-01-14 20:44:07 +01:00
|
|
|
|
2002-08-16 03:41:32 +02:00
|
|
|
}
|
2002-01-14 20:44:07 +01:00
|
|
|
|
2003-01-30 01:18:48 +01:00
|
|
|
if ((uMsg >= WM_USER) && (uMsg < WM_APP)) {
|
|
|
|
FIXME("Unknown message 0x%x Passed to default hwnd=%p, wParam=%08x, lParam=%08x\n",
|
|
|
|
uMsg, hwnd, (UINT)wParam, (UINT)lParam);
|
|
|
|
}
|
2002-04-23 01:08:19 +02:00
|
|
|
|
2004-05-04 04:54:30 +02:00
|
|
|
return CallWindowProcA(lpfnEditWndProc, hwnd, uMsg, wParam, lParam);
|
2000-05-07 22:23:41 +02:00
|
|
|
}
|
|
|
|
|
2000-05-11 23:46:51 +02:00
|
|
|
/***********************************************************************
|
2001-07-11 20:56:41 +02:00
|
|
|
* DllGetVersion [RICHED32.2]
|
2000-05-07 22:23:41 +02:00
|
|
|
*
|
2001-07-11 20:56:41 +02:00
|
|
|
* Retrieves version information of the 'RICHED32.DLL'
|
2000-05-07 22:23:41 +02:00
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pdvi [O] pointer to version information structure.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: S_OK
|
|
|
|
* Failure: E_INVALIDARG
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* Returns version of a comctl32.dll from IE4.01 SP1.
|
|
|
|
*/
|
|
|
|
|
|
|
|
HRESULT WINAPI
|
|
|
|
RICHED32_DllGetVersion (DLLVERSIONINFO *pdvi)
|
|
|
|
{
|
2002-01-14 20:44:07 +01:00
|
|
|
TRACE("\n");
|
|
|
|
|
2000-05-07 22:23:41 +02:00
|
|
|
if (pdvi->cbSize != sizeof(DLLVERSIONINFO)) {
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2000-05-07 22:23:41 +02:00
|
|
|
return E_INVALIDARG;
|
|
|
|
}
|
|
|
|
|
|
|
|
pdvi->dwMajorVersion = 4;
|
|
|
|
pdvi->dwMinorVersion = 0;
|
|
|
|
pdvi->dwBuildNumber = 0;
|
|
|
|
pdvi->dwPlatformID = 0;
|
|
|
|
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***
|
|
|
|
* DESCRIPTION:
|
|
|
|
* Registers the window class.
|
2002-06-01 01:06:46 +02:00
|
|
|
*
|
2000-05-07 22:23:41 +02:00
|
|
|
* PARAMETER(S):
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* RETURN:
|
|
|
|
* None
|
|
|
|
*/
|
|
|
|
VOID RICHED32_Register(void)
|
|
|
|
{
|
2002-06-01 01:06:46 +02:00
|
|
|
WNDCLASSA wndClass;
|
2000-05-07 22:23:41 +02:00
|
|
|
|
2002-01-14 20:44:07 +01:00
|
|
|
TRACE("\n");
|
|
|
|
|
2000-05-07 22:23:41 +02:00
|
|
|
ZeroMemory(&wndClass, sizeof(WNDCLASSA));
|
|
|
|
wndClass.style = CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS;
|
2004-12-06 12:51:29 +01:00
|
|
|
wndClass.lpfnWndProc = RICHED32_WindowProc;
|
2000-05-07 22:23:41 +02:00
|
|
|
wndClass.cbClsExtra = 0;
|
2004-05-04 04:54:30 +02:00
|
|
|
wndClass.cbWndExtra = RTFInfoOffset + sizeof(RTFControl_Info*);
|
2003-09-10 05:56:47 +02:00
|
|
|
wndClass.hCursor = LoadCursorA(0, (LPSTR)IDC_ARROW);
|
2000-05-07 22:23:41 +02:00
|
|
|
wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
|
2002-04-29 20:48:56 +02:00
|
|
|
wndClass.lpszClassName = RICHEDIT_CLASS10A; /* WC_RICHED32A; */
|
2000-05-07 22:23:41 +02:00
|
|
|
|
|
|
|
RegisterClassA (&wndClass);
|
|
|
|
}
|
|
|
|
|
|
|
|
/***
|
|
|
|
* DESCRIPTION:
|
|
|
|
* Unregisters the window class.
|
2002-06-01 01:06:46 +02:00
|
|
|
*
|
2000-05-07 22:23:41 +02:00
|
|
|
* PARAMETER(S):
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* RETURN:
|
|
|
|
* None
|
|
|
|
*/
|
|
|
|
VOID RICHED32_Unregister(void)
|
|
|
|
{
|
2002-01-14 20:44:07 +01:00
|
|
|
TRACE("\n");
|
|
|
|
|
2002-12-02 19:10:57 +01:00
|
|
|
UnregisterClassA(RICHEDIT_CLASS10A, NULL);
|
2000-05-07 22:23:41 +02:00
|
|
|
}
|
2002-04-23 01:08:19 +02:00
|
|
|
|
2004-05-04 04:54:30 +02:00
|
|
|
|
|
|
|
/***
|
|
|
|
* DESCRIPTION:
|
|
|
|
* Initialize edit control class info
|
|
|
|
*/
|
|
|
|
VOID RICHEDIT_InitEditControlInfo(void)
|
|
|
|
{
|
|
|
|
WNDCLASSA wcEdit;
|
|
|
|
|
|
|
|
if (GetClassInfoA(0, "edit", &wcEdit))
|
|
|
|
{
|
|
|
|
lpfnEditWndProc = wcEdit.lpfnWndProc;
|
|
|
|
RTFInfoOffset = wcEdit.cbWndExtra;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
ERR("Failed to retrieve edit control class info\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-04-23 01:08:19 +02:00
|
|
|
INT RICHEDIT_GetTextRange(HWND hwnd,TEXTRANGEA *tr)
|
|
|
|
{
|
|
|
|
UINT alloc_size, text_size, range_size;
|
|
|
|
char *text;
|
|
|
|
|
|
|
|
TRACE("start: 0x%x stop: 0x%x\n",(INT)tr->chrg.cpMin,(INT)tr->chrg.cpMax);
|
|
|
|
|
|
|
|
if (!(alloc_size = SendMessageA(hwnd,WM_GETTEXTLENGTH,0,0))) return FALSE;
|
|
|
|
if (!(text = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, (alloc_size+1))))
|
|
|
|
return FALSE;
|
|
|
|
text_size = SendMessageA(hwnd,WM_GETTEXT,alloc_size,(INT)text);
|
|
|
|
|
|
|
|
if (text_size > tr->chrg.cpMin)
|
|
|
|
{
|
2002-06-01 01:06:46 +02:00
|
|
|
range_size = (text_size> tr->chrg.cpMax) ? (tr->chrg.cpMax - tr->chrg.cpMin) : (text_size - tr->chrg.cpMin);
|
2002-04-23 01:08:19 +02:00
|
|
|
TRACE("EditText: %.30s ...\n",text+tr->chrg.cpMin);
|
|
|
|
memcpy(tr->lpstrText,text+tr->chrg.cpMin,range_size);
|
|
|
|
}
|
|
|
|
else range_size = 0;
|
|
|
|
HeapFree(GetProcessHeap(), 0, text);
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2002-04-23 01:08:19 +02:00
|
|
|
return range_size;
|
|
|
|
}
|
|
|
|
|
|
|
|
INT RICHEDIT_GetSelText(HWND hwnd,LPSTR lpstrBuffer)
|
|
|
|
{
|
|
|
|
TEXTRANGEA textrange;
|
|
|
|
|
|
|
|
textrange.lpstrText = lpstrBuffer;
|
|
|
|
SendMessageA(hwnd,EM_GETSEL,(INT)&textrange.chrg.cpMin,(INT)&textrange.chrg.cpMax);
|
|
|
|
return RICHEDIT_GetTextRange(hwnd,&textrange);
|
|
|
|
}
|