Windows2003-3790/windows/richedit/lssrc/lsensubl.c

24 lines
567 B
C
Raw Normal View History

2001-01-01 00:00:00 +01: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);
}