示例#1
0
//###########################################
CPAGE_FUNC(uint32_t)  CPAGE_GetNumberPage( Handle hPage )
{
	PROLOG;
	uint32_t rc = (uint32_t)-1;
	if(hPage)
		rc = (uint32_t)Page.GetPos(hPage);
	EPILOG;
	return rc;
}
示例#2
0
//###########################################
CPAGE_FUNC(Handle)  CPAGE_GetPageNext(Handle page, Handle type)
{
	PROLOG;
	int count = Page.GetCount();
	int pos   = Page.GetPos(page) + 1;
	int i;

#ifdef _DEBUG
	_ASSERT(CPAGE_GetNameInternalType(type));
#endif
	DefConvertInit();
	for(i = pos; i<count && i>=0 ;i++)
	{
		if(!type ||
			PAGE_N(i).GetType()==type ||
		    PAGE_N(i).Convert(type,NULL,0))
			break;
	}
	Handle rc = i < count ? Page.GetHandle(i):NULL;
	EPILOG;
	return rc;
}