windows-nt/Source/XPSP1/NT/windows/richedit/lssrc/lsdssubl.c

25 lines
598 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#include "lsdssubl.h"
#include <limits.h>
#include "lsc.h"
#include "dispmain.h"
#include "lssubl.h"
// %%Function: LsDisplaySubline
// %%Contact: victork
//
LSERR WINAPI LsDisplaySubline(PLSSUBL plssubl, const POINT* pptorg, UINT kdispmode, const RECT *prectClip)
{
if (!FIsLSSUBL(plssubl)) return lserrInvalidParameter;
if (plssubl->plsc->lsstate != LsStateDisplaying) return lserrContextInUse; /* change lserr later */
return DisplaySublineCore(plssubl, pptorg, kdispmode, prectClip,
LONG_MAX, /* upLimUnderline ignored */
0); /* dupLeftIndent */
}