Hi Antonio.
Here is a little contribuition to your great richedit class:
---cut---
HB_FUNC( RESETPARABULLET )
{
PARAFORMAT pf;
memset( ( char * ) &pf, 0, sizeof( pf ) );
pf.cbSize = sizeof( pf );
SendMessage( ( HWND ) hb_parnl( 1 ), EM_GETPARAFORMAT, 0, ( LPARAM ) &pf );
if( ( pf.dwMask & PFM_NUMBERING ) && ( pf.wNumbering == PFN_BULLET ) )
{
pf.wNumbering = 0;
pf.dxOffset = 0;
pf.dxStartIndent = 0;
pf.dwMask = PFM_NUMBERING | PFM_STARTINDENT | PFM_OFFSET;
}
else
{
pf.wNumbering = PFN_BULLET;
pf.dwMask = PFM_NUMBERING;
if( pf.dxOffset == 0 )
{
pf.dxOffset = 4;
pf.dwMask = PFM_NUMBERING | PFM_STARTINDENT | PFM_OFFSET;
}
}
hb_retl( SendMessage( ( HWND ) hb_parnl( 1 ), EM_SETPARAFORMAT, 0, ( LPARAM ) &pf ) );
}
---cut---
Regards,
Toninho.