Sometimes, you will need to determine if your application is running on a device with a color screen. This ultra-sleek C routine returns true if your app runs on a handheld with a color screen:
Boolean hasColorCrt()
{
Boolean enableColor;
WinScreenMode(winScreenModeGet, NULL,NULL, NULL,&enableColor );
return enableColor;
}
It was tested on a OS4 Palm V, a Tungsten T3 and a Tungsten E2. It compiled perfectly in PODS 1.1 and OnBoardC. Feel free to use it in your apps!
Related posts:

Don’t feel pissed on. But I think there are no PalmOS-Devices with a CTR (cathode ray tube).
Stefan
Hi Stefan,
thanks for pointing this out.
I was probably very tired when I coded this routine..it was at school IMHO(it is part of BinaryClock-the binary clock for Palm OS) and I was very, very bored!
Best regards
Tam Hanna
P.s. Dont feel pissed on yourself-but its CRT, not CTR;)