is there a way to break data received on serial port in chunks of each time new line char is received?

my program is receiving enormous amount of data on serial port and i want to break incoming data at newline then process it and then display it on view window.

i am using VC++ and win32 API fns to read from and write to serial port on win xp platform.

thanks
Abi