Enrico; Thank you for the tip. I seldom make any contributions. Below is what I wrote. That's my 2 cents. //----------------------------------------------------------------------------// HB_FUNC( HIGHLIGHTSELECTION ) { CHARFORMAT2 cfrm; memset( ( char * ) &cfrm, 0, sizeof( cfrm ) ); cfrm.cbSize ...