All API functions return values in pixels unless otherwise stated (e.g: some RichEdit messages return a distance twips).