DBEdit for floating point number

Hi all,
I want edit a floating point number in DBEdit.
if I know there should be 2 digital after point (dot) in my number.
how could i conrol KeyDown event to track and check if there are too many
digital in right of dot?
How could I get lighting cursor position in edit control?
Win32 API?

Regards.

Wu JianHua.