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

24 lines
544 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#include "lsensubl.h"
#include "lsc.h"
#include "lssubl.h"
#include "enumcore.h"
// %%Function: LsEnumSubline
// %%Contact: victork
//
/*
* Enumerates subline (from the given point is fGeometry needed).
*/
LSERR WINAPI LsEnumSubline(PLSSUBL plssubl, BOOL fReverseOrder, BOOL fGeometryNeeded, const POINT* pptorg)
{
if (!FIsLSSUBL(plssubl)) return lserrInvalidParameter;
if (plssubl->plsc->lsstate != LsStateEnumerating) return lserrContextInUse;
return EnumSublineCore(plssubl, fReverseOrder, fGeometryNeeded, pptorg, 0);
}