Text editor in WinAPI