#include "precomp.h"
Go to the source code of this file.
Defines | |
#define | LINEBUMP 32 |
#define | ML_REFRESH 0xffffffff |
Functions | |
__inline void | MLSanityCheck (PED ped) |
UINT | MLGetLineWidth (HDC hdc, LPSTR lpstr, int nCnt, PED ped) |
void | MLSize (PED ped, BOOL fRedraw) |
int | MLCalcXOffset (PED ped, HDC hdc, int lineNumber) |
ICH | MLMoveSelection (PED ped, ICH ich, BOOL fLeft) |
ICH | MLMoveSelectionRestricted (PED ped, ICH ich, BOOL fLeft) |
void | MLSetCaretPosition (PED ped, HDC hdc) |
ICH | MLLine (PED ped, ICH lineNumber) |
int | MLIchToLine (PED ped, ICH ich) |
INT | MLIchToYPos (PED ped, ICH ich, BOOL prevLine) |
void | MLIchToXYPos (PED ped, HDC hdc, ICH ich, BOOL prevLine, LPPOINT ppt) |
ICH | MLMouseToIch (PED ped, HDC hdc, LPPOINT mousePt, LPICH pline) |
void | MLChangeSelection (PED ped, HDC hdc, ICH ichNewMinSel, ICH ichNewMaxSel) |
void | MLUpdateiCaretLine (PED ped) |
ICH | MLInsertText (PED ped, LPSTR lpText, ICH cchInsert, BOOL fUserTyping) |
void | MLReplaceSel (PED ped, LPSTR lpText) |
ICH | MLDeleteText (PED ped) |
BOOL | MLInsertchLine (PED ped, ICH iLine, ICH ich, BOOL fUserTyping) |
void | MLShiftchLines (PED ped, ICH iLine, int delta) |
void | MLBuildchLines (PED ped, ICH iLine, int cchDelta, BOOL fUserTyping, PLONG pll, PLONG phl) |
void | MLPaint (PED ped, HDC hdc, LPRECT lprc) |
void | MLKeyDown (PED ped, UINT virtKeyCode, int keyMods) |
void | MLChar (PED ped, DWORD keyValue, int keyMods) |
ICH PASCAL NEAR | MLPasteText (PED ped) |
void | MLMouseMotion (PED ped, UINT message, UINT virtKeyDown, LPPOINT mousePt) |
LONG | MLScroll (PED ped, BOOL fVertical, int cmd, int iAmt, BOOL fRedraw) |
void | MLSetFocus (PED ped) |
void | MLKillFocus (PED ped) |
BOOL | MLEnsureCaretVisible (PED ped) |
LRESULT | MLEditWndProc (HWND hwnd, PED ped, UINT message, WPARAM wParam, LPARAM lParam) |
void | MLDrawText (PED ped, HDC hdc, ICH ichStart, ICH ichEnd, BOOL fSelChange) |
|
Definition at line 17 of file editml.c. Referenced by MLInsertchLine(). |
|
Definition at line 22 of file editml.c. Referenced by MLBuildchLines(), MLScroll(), and MLSize(). |
|
Definition at line 1562 of file editml.c. References AWCOMPARECHAR, BOOL, CALLWORDBREAKPROC, tagED::cbChar, tagED::cch, tagED::chLines, tagED::cLines, DWORD, ECAdjustIch(), ECAnsiPrev(), ECCchInWidth(), ECGetEditDC(), ECIsDBCSLeadByte(), ECLock(), ECNextIch(), ECReleaseEditDC(), ECUnlock(), ECWord(), tagLPKEDITCALLOUT::EditCchInWidth, tagLPKEDITCALLOUT::EditGetLineWidth, FALSE, tagED::fAnsi, tagED::fCalcLines, tagED::fDBCS, tagED::fWrap, ICH, tagED::ichScreenStart, ISDELIMETERA, ISDELIMETERW, tagED::lpfnNextWord, max, MAXLINELENGTH, tagED::maxPixelWidth, ML_REFRESH, MLGetLineWidth(), MLInsertchLine(), MLSanityCheck(), MLScroll(), MLShiftchLines(), NULL, tagED::pLpkEditCallout, tagED::rcFmt, TRUE, UINT, UserIsFullWidth(), and tagED::xOffset. Referenced by ECResetTextInfo(), ECSetFont(), ECUpdateFormat(), MLDeleteText(), MLEditWndProc(), MLInsertText(), MLSetTabStops(), and MLSize().
|
|
Definition at line 85 of file editml.c. References tagED::cbChar, tagED::chLines, ECGetEditDC(), ECLock(), ECReleaseEditDC(), ECUnlock(), tagED::format, ICH, max, MLGetLineWidth(), MLLine(), tagED::rcFmt, and TRUE. Referenced by MLDrawText(), MLIchToXYPos(), and MLMouseToIch().
|
|
Definition at line 919 of file editml.c. References _IsWindowVisible(), tagED::cch, ECCalcChangeSelection(), tagBLOCK::EndPos, tagED::fFocus, tagED::fNoHideSel, tagED::hwnd, ICH, tagED::ichMaxSel, tagED::ichMinSel, min, MLDrawText(), MLSetCaretPosition(), NtUserHideCaret(), NtUserShowCaret(), tagED::pwnd, tagBLOCK::StPos, and TRUE. Referenced by MLKeyDown(), MLMouseMotion(), and MLSetSelection().
|
|
Definition at line 2531 of file editml.c. References BOOL, BYTE, CTRLDOWN, DbcsCombine(), ECGetModKeys(), ECInOutReconversionMode(), ECIsCharNumeric(), ECIsDBCSLeadByte(), EFNUMBER, EFWANTRETURN, tagED::f40Compat, FALSE, tagED::fAnsi, tagED::fInDialogBox, tagED::fMouseDown, tagED::fReadOnly, HIBYTE, tagED::hwnd, tagED::ichCaret, tagED::ichMaxSel, tagED::ichMinSel, L, LOBYTE, MLDeleteText(), MLInsertText(), MLMoveSelection(), msg, NtUserCallNoParam(), NtUserMessageBeep, tagED::pwnd, SendMessage(), TestWF, TRUE, and UINT. Referenced by MLEditWndProc(), and MLKeyDown().
|
|
Definition at line 1367 of file editml.c. References _IsWindowVisible(), BOOL, tagED::cch, tagED::chLines, CopyRect, ECDeleteText(), ECGetEditDC(), ECNextIch(), ECNotifyParent(), ECReleaseEditDC(), FALSE, tagED::fAnsi, tagED::fAutoVScroll, tagED::fDBCS, tagED::fDirty, FWINABLE, tagED::hwnd, ICH, tagED::ichMaxSel, tagED::ichMinSel, INT, tagED::lineHeight, max, MLBuildchLines(), MLDrawText(), MLEnsureCaretVisible(), MLIchToLine(), MLIchToXYPos(), MLIchToYPos(), MLShiftchLines(), MLUpdateiCaretLine(), NotifyWinEvent(), NtUserInvalidateRect(), NULL, tagED::pLpkEditCallout, tagED::pwnd, tagED::rcFmt, TRUE, tagED::wLeftMargin, and tagED::wRightMargin. Referenced by ECImeComposition(), EditWndProc(), MLChar(), MLPasteText(), and MLReplaceSel().
|
|
Definition at line 3991 of file editml.c. References BOOL, tagED::cbChar, tagED::cch, tagED::chLines, tagED::cLines, CopyRect, DWORD, ECAdjustIch(), ECAdjustIchNext(), ECGetBrush(), ECLock(), ECT_NORMAL, ECT_SELECTED, ECTabTheTextOut(), ECUnlock(), tagLPKEDITCALLOUT::EditDrawText, FALSE, tagED::fAnsi, tagED::fDBCS, tagED::fDisabled, tagED::fFocus, tagED::fNoHideSel, tagED::format, GetSysColor(), tagED::hwnd, ICH, tagED::ichLinesOnScreen, tagED::ichMaxSel, tagED::ichMinSel, tagED::ichScreenStart, INT, tagED::lineHeight, max, MAXCLIPENDPOS, min, MLCalcXOffset(), MLIchToLine(), MLIchToXYPos(), MLIchToYPos(), MLLine(), MLSetCaretPosition(), STRIPINFO::nCount, NtUserHideCaret(), NtUserInvalidateRect(), NtUserShowCaret(), tagED::pLpkEditCallout, tagED::rcFmt, TRUE, UINT, tagED::wLeftMargin, tagED::wMaxNegAcharPos, tagED::wMaxNegC, tagED::wMaxNegCcharPos, tagED::wRightMargin, tagED::xOffset, and STRIPINFO::XStartPos. Referenced by MLChangeSelection(), MLDeleteText(), MLInsertText(), MLKillFocus(), MLPaint(), and MLSetFocus().
|
|
Definition at line 3457 of file editml.c. References _IsWindowVisible(), abs, tagED::aveCharWidth, BOOL, tagED::cch, DefWindowProcWorker(), DWORD, ECEmptyUndo(), ECGetCaretWidth, ECGetEditDC(), ECInOutReconversionMode(), ECLock(), ECReleaseEditDC(), ECSize(), ECUnlock(), ECUpdateFormat(), tagLPKEDITCALLOUT::EditCreateCaret, EnterReaderModeHelper(), tagED::f40Compat, FALSE, tagED::fAnsi, tagED::fDisabled, tagED::fFocus, FillWindow, tagED::fInDialogBox, tagED::fMouseDown, tagED::fReadOnly, gcWheelDelta, gpsi, tagED::hText, tagED::hwnd, tagED::hwndParent, ICH, tagED::ichLinesOnScreen, tagED::ichScreenStart, IDSYS_SCROLL, INT, L, tagED::lineHeight, max, min, MLBuildchLines(), MLChar(), MLCreate(), MLEnsureCaretVisible(), MLGetLine(), MLIchToLine(), MLIchToXYPos(), MLInsertCrCrLf(), MLKeyDown(), MLKillFocus(), MLLineIndex(), MLLineLength(), MLMouseMotion(), MLMouseToIch(), MLPaint(), MLPasteText(), MLReplaceSel(), MLScroll(), MLSetCaretPosition(), MLSetFocus(), MLSetHandle(), MLSetSelection(), MLSetTabStops(), MLStripCrCrLf(), MLUndo(), NtUserBeginPaint(), NtUserDestroyCaret, NtUserEndPaint(), NtUserHideCaret(), NtUserKillSystemTimer, NtUserShowCaret(), NULL, tagED::pLpkEditCallout, tagED::prevKeys, tagED::ptPrevMouse, Pundo, tagED::pwnd, tagED::rcFmt, RedrawWindow, SendMessage(), SYS_ALTERNATE, TRUE, UINT, and WM_SYSTIMER. Referenced by ECClearText(), and EditWndProc().
|
|
Definition at line 3379 of file editml.c. References _IsWindowVisible(), tagED::aveCharWidth, BOOL, tagED::chLines, tagED::cLines, ECGetEditDC(), ECReleaseEditDC(), FALSE, tagED::fAutoHScroll, tagED::fAutoVScroll, tagED::iCaretLine, tagED::ichCaret, tagED::ichLinesOnScreen, tagED::ichScreenStart, tagED::maxPixelWidth, MLIchToXYPos(), MLScroll(), tagED::pwnd, tagED::rcFmt, TRUE, and UINT. Referenced by MLDeleteText(), MLEditWndProc(), MLInsertText(), MLKeyDown(), MLMouseMotion(), MLSetFocus(), MLSetSelection(), and MLSetTabStops().
|
|
Definition at line 40 of file editml.c. References ECT_CALC, ECTabTheTextOut(), NULL, and UINT. Referenced by MLBuildchLines(), MLCalcXOffset(), MLIchToXYPos(), and MLMouseToIch().
|
|
Definition at line 443 of file editml.c. References tagED::chLines, tagED::cLines, ICH, tagED::ichMinSel, and max. Referenced by MLDeleteText(), MLDrawText(), MLEditWndProc(), MLIchToXYPos(), MLIchToYPos(), MLInsertText(), MLKeyDown(), MLLineLength(), MLSetSelection(), and MLUpdateiCaretLine().
|
|
Definition at line 553 of file editml.c. References AWCOMPARECHAR, tagED::cbChar, tagED::cch, tagED::chLines, DWORD, ECLock(), ECUnlock(), tagLPKEDITCALLOUT::EditIchToXY, tagED::fAnsi, tagED::format, ICH, tagED::ichScreenStart, tagED::lineHeight, MLCalcXOffset(), MLGetLineWidth(), MLIchToLine(), MLLine(), tagED::pLpkEditCallout, tagED::rcFmt, and tagED::xOffset. Referenced by MLDeleteText(), MLDrawText(), MLEditWndProc(), MLEnsureCaretVisible(), MLInsertText(), MLKeyDown(), and MLSetCaretPosition().
|
|
Definition at line 502 of file editml.c. References AWCOMPARECHAR, tagED::cbChar, tagED::chLines, ECLock(), ECUnlock(), tagED::ichScreenStart, INT, tagED::lineHeight, MLIchToLine(), and tagED::rcFmt. Referenced by MLDeleteText(), MLDrawText(), and MLInsertText().
|
|
Definition at line 1487 of file editml.c. References BOOL, tagED::chLines, tagED::cLines, DWORD, ECNotifyParent(), FALSE, LINEBUMP, LPICH, TRUE, UserLocalReAlloc, and UserLocalSize. Referenced by MLBuildchLines().
|
|
Definition at line 1040 of file editml.c. References _IsWindowVisible(), BOOL, tagED::cbChar, tagED::cch, tagED::cchTextMax, tagED::chLines, tagED::cLines, CopyRect, DWORD, ECAdjustIch(), ECEmptyUndo(), ECGetEditDC(), ECInsertText(), ECLock(), ECNotifyParent(), ECReleaseEditDC(), ECSaveUndo(), FALSE, tagED::fAnsi, tagED::fAutoVScroll, tagED::fDBCS, tagED::fDirty, tagED::format, tagED::fRtoLReading, FWINABLE, tagED::fWrap, tagED::hwnd, tagED::iCaretLine, ICH, tagED::ichCaret, tagED::ichLinesOnScreen, tagED::ichScreenStart, IsWindow(), tagED::lineHeight, max, tagED::maxPixelWidth, min, MLBuildchLines(), MLDrawText(), MLEnsureCaretVisible(), MLIchToLine(), MLIchToXYPos(), MLIchToYPos(), MLUndo(), MLUpdateiCaretLine(), NotifyWinEvent(), NtUserInvalidateRect(), NtUserMessageBeep, tagED::pLpkEditCallout, Pundo, tagED::pwnd, tagED::rcFmt, TRUE, tagED::wLeftMargin, tagED::wMaxNegAcharPos, tagED::wRightMargin, and tagED::xOffset. Referenced by ECImeComposition(), MLChar(), MLPasteText(), MLReplaceSel(), and MLUndo().
|
|
Definition at line 2028 of file editml.c. References tagED::aveCharWidth, BOOL, tagED::cbChar, tagED::cch, tagED::chLines, tagED::cLines, CTRLDOWN, DWORD, ECGetEditDC(), ECGetModKeys(), ECLock(), ECReleaseEditDC(), ECUnlock(), ECWord(), EFWANTRETURN, FALSE, tagED::fAnsi, tagED::fFocus, tagED::fInDialogBox, tagED::fMouseDown, tagED::fReadOnly, tagED::fWrap, GETAPPVER, GetDlgItem(), HanjaKeyHandler(), tagED::hwnd, tagED::hwndParent, tagED::iCaretLine, ICH, tagED::ichCaret, tagED::ichMaxSel, tagED::ichMinSel, L, tagED::lineHeight, MLChangeSelection(), MLChar(), MLEnsureCaretVisible(), MLIchToLine(), MLIchToXYPos(), MLLine(), MLMouseMotion(), MLMoveSelection(), MLMoveSelectionRestricted(), MLSetCaretPosition(), NONEDOWN, NULL, tagED::pLpkEditCallout, PostMessage(), tagED::pwnd, tagED::rcFmt, SendMessage(), SendMessageWorker(), SHFTDOWN, TestWF, TRUE, UINT, and VER40. Referenced by MLEditWndProc().
|
|
Definition at line 3329 of file editml.c. References _IsWindowVisible(), ECGetEditDC(), ECNotifyParent(), ECReleaseEditDC(), FALSE, tagED::fFocus, tagED::fNoHideSel, gcWheelDelta, tagED::ichMaxSel, tagED::ichMinSel, MLDrawText(), NtUserDestroyCaret, tagED::pwnd, and TRUE. Referenced by MLEditWndProc().
|
|
Definition at line 374 of file editml.c. References tagED::cch, tagED::chLines, tagED::cLines, DWORD, ECLock(), ECUnlock(), tagED::fAnsi, and ICH. Referenced by MLCalcXOffset(), MLDrawText(), MLGetLine(), MLIchToXYPos(), MLKeyDown(), MLLineLength(), and MLMouseToIch().
|
|
Definition at line 2792 of file editml.c. References BOOL, tagED::chLines, ECGetEditDC(), ECIsDBCSLeadByte(), ECLock(), ECReleaseEditDC(), ECUnlock(), ECWord(), FALSE, tagED::fAnsi, tagED::fDBCS, tagED::fFocus, tagED::fMouseDown, gpsi, tagED::hwnd, tagED::iCaretLine, ICH, tagED::ichCaret, tagED::ichMaxSel, tagED::ichMinSel, tagED::ichStartMaxSel, tagED::ichStartMinSel, IDSYS_SCROLL, MLChangeSelection(), MLEnsureCaretVisible(), MLMouseToIch(), MLSetCaretPosition(), NtUserKillSystemTimer, NtUserReleaseCapture, NtUserSetCapture(), NtUserSetFocus(), NtUserSetSystemTimer(), NULL, tagED::prevKeys, tagED::ptPrevMouse, tagED::rcFmt, TRUE, and UINT. Referenced by MLEditWndProc(), and MLKeyDown().
|
|
Definition at line 689 of file editml.c. References tagED::aveCharWidth, tagED::cbChar, tagED::chLines, tagED::cLines, ECAdjustIch(), ECCchInWidth(), ECLock(), ECUnlock(), tagLPKEDITCALLOUT::EditMouseToIch, tagED::fAnsi, tagED::fDBCS, tagED::format, ICH, tagED::ichLinesOnScreen, tagED::ichScreenStart, tagED::lineHeight, max, min, MLCalcXOffset(), MLGetLineWidth(), MLLine(), tagED::pLpkEditCallout, tagED::rcFmt, TRUE, and tagED::xOffset. Referenced by MLEditWndProc(), MLMouseMotion(), and MLPaint().
|
|
Definition at line 144 of file editml.c. References tagED::cch, ECLock(), ECNextIch(), ECPrevIch(), ECUnlock(), tagED::fAnsi, ICH, and NULL. Referenced by MLChar(), and MLKeyDown().
|
|
Definition at line 264 of file editml.c. References ECGetEditDC(), ECLock(), ECReleaseEditDC(), ECUnlock(), tagLPKEDITCALLOUT::EditMoveSelection, ICH, tagED::pLpkEditCallout, and TRUE. Referenced by MLKeyDown().
|
|
Definition at line 1965 of file editml.c. References _GetClientRect(), BOOL, tagED::cch, DF_WINDOWFRAME, DrawFrame(), ECSetEditClip(), FALSE, tagED::fFlatBorder, tagED::hFont, ICH, InflateRect(), MLDrawText(), MLMouseToIch(), NULL, tagED::pwnd, SYSMET, TestWF, WFSIZEBOX, and tagED::xOffset. Referenced by MLEditWndProc().
|
|
Definition at line 2720 of file editml.c. References ECEmptyUndo(), FALSE, tagED::fAnsi, tagED::fAutoVScroll, GetClipboardData(), tagED::hwnd, ICH, MLDeleteText(), MLInsertText(), NtUserCloseClipboard(), NtUserSetCursor(), NULL, OpenClipboard(), strlen(), USERGLOBALLOCK, and USERGLOBALUNLOCK. Referenced by MLEditWndProc().
|
|
Definition at line 1309 of file editml.c. References BOOL, ECEmptyUndo(), ECSaveUndo(), FALSE, tagED::fAnsi, tagED::hwnd, ICH, IsWindow(), MLDeleteText(), MLInsertText(), MLUndo(), Pundo, and strlen(). Referenced by ECResultStrHandler(), and MLEditWndProc().
|
|
Definition at line 24 of file editml.c. References tagED::cch, tagED::chLines, and tagED::cLines. Referenced by MLBuildchLines().
|
|
Definition at line 2966 of file editml.c. References _GetClientRect(), _IsWindowVisible(), tagED::aveCharWidth, BOOL, tagED::cLines, CopyRect, DWORD, ECGetBrush(), ECGetEditDC(), ECNotifyParent(), ECReleaseEditDC(), ECSetEditClip(), FALSE, tagED::format, tagED::fRtoLReading, GetScrollInfo(), tagED::hFont, tagED::hwnd, tagED::hwndParent, tagED::ichLinesOnScreen, tagED::ichScreenStart, IntersectRect(), L, tagED::lineHeight, max, tagED::maxPixelWidth, min, ML_REFRESH, MLSetCaretPosition(), NtUserInvalidateRect(), NtUserScrollDC(), NtUserSetScrollInfo(), NULL, tagED::pLpkEditCallout, tagED::pwnd, tagED::rcFmt, ScrollWindowEx(), TestWF, TRUE, UINT, UnionRect(), UpdateWindow(), ValidateHwnd, WFHSCROLL, WFVSCROLL, WFWIN40COMPAT, tagED::wLeftMargin, tagED::wRightMargin, and tagED::xOffset. Referenced by ECUpdateFormat(), MLBuildchLines(), MLEditWndProc(), MLEnsureCaretVisible(), and MLSize().
|
|
Definition at line 292 of file editml.c. References _IsWindowVisible(), BOOL, tagED::chLines, tagED::cLines, CopyRect, ECGetCaretWidth, ECImmSetCompositionWindow(), tagED::f40Compat, FALSE, tagED::fCaretHidden, tagED::fFocus, fpImmIsIME, tagED::fWrap, GetClientRect(), tagED::hwnd, tagED::iCaretLine, tagED::iCaretOffset, ICH, tagED::ichCaret, tagED::ichLinesOnScreen, tagED::ichScreenStart, IntersectRect(), tagED::lineHeight, max, min, MLIchToXYPos(), NtUserSetCaretPos, tagED::pLpkEditCallout, tagED::pwnd, tagED::rcFmt, THREAD_HKL, and TRUE. Referenced by ECSetCaretHandler(), MLChangeSelection(), MLDrawText(), MLEditWndProc(), MLKeyDown(), MLMouseMotion(), MLScroll(), MLSetFocus(), and MLSetSelection().
|
|
Definition at line 3274 of file editml.c. References _IsWindowVisible(), ECGetCaretWidth, ECGetEditDC(), ECNotifyParent(), ECReleaseEditDC(), tagLPKEDITCALLOUT::EditCreateCaret, tagED::fFocus, tagED::fNoHideSel, tagED::hwnd, tagED::ichMaxSel, tagED::ichMinSel, tagED::lineHeight, MLDrawText(), MLEnsureCaretVisible(), MLSetCaretPosition(), NtUserCreateCaret(), NtUserShowCaret(), NULL, tagED::pLpkEditCallout, tagED::pwnd, and TRUE. Referenced by MLEditWndProc().
|
|
Definition at line 1538 of file editml.c. References tagED::chLines, and tagED::cLines. Referenced by MLBuildchLines(), and MLDeleteText().
|
|
Definition at line 56 of file editml.c. References FALSE, tagED::fWrap, tagED::ichLinesOnScreen, tagED::lineHeight, ML_REFRESH, MLBuildchLines(), MLScroll(), MLUpdateiCaretLine(), NULL, tagED::rcFmt, and TRUE. Referenced by ECSize().
|
|
Definition at line 1003 of file editml.c. References AWCOMPARECHAR, tagED::cbChar, tagED::chLines, ECLock(), ECUnlock(), tagED::iCaretLine, tagED::ichCaret, and MLIchToLine(). Referenced by ECUpdateFormat(), MLDeleteText(), MLInsertText(), MLSetTabStops(), and MLSize().
|