Use only Omnis paint methods for better cross platform support

Change all Windows-specific paint methods with Omnis cross-platform paint methods.