Mac Edit_TextFitsInClient: BOOL __fastcc (void* pWindow ECX, void* pEditData EDX)
ECX = the edit window (GetClientRect 0x0002fdc5 [ESP], GetDC 0x00024573, ReleaseDC 0x00024665). EDX -> EDI = the edit state (+0 style, +0x34 line count, +0x40 line height, +0x14 length, +0x48 text). Multiline: it returns line count <= client height / line height. Single-line with no auto-scroll: it returns text width (GetTextExtentPoint 0x0002bb80) < client width. Otherwise it returns 1. The result is returned in EAX (MOV EAX,ESI at 0x000214e8). There are no stack args.
Changes 1, applied together
Set prototype
mac 0x00021443signatureundefined Edit_TextFitsInClient(void)→BOOL Edit_TextFitsInClient(void* pWindow, void* pEditData)conventionunknown→__fastcc