PRB: QCase:W Does Not Allow a Pure Black on White Window

ID Number: Q79150

1.00

WINDOWS

Summary:

SYMPTOMS

When using the Microsoft QuickC for Windows Compiler (QC/Win)

version 1.0 and the QCase:W utility, setting foreground and

background colors by choosing Colors from the Design menu allows

the user to choose the default colors of his or her application.

The default colors used by QCase:W are a completely white

background and a completely black foreground. However, if these are

chosen to be the default (by not changing the colors and selecting

OK, or by selecting Default) the colors set in the Windows Control

Panel are used for the window colors.

RESOLUTION

QCase:W does not allow the user to choose a pure white background

with a pure black foreground. To obtain this feature, choose the

Design menu option and select the Background option button in the

Colors dialog box. Slide the red color to change the red default

value to 254. Select OK. The color can be changed after the code is

generated.

The background color statement in the nCwResterClasses() function

will read as follows:

wndclass.hbrBackground = CreateSolidBrush(RGB(254, 255, 255));

Changing this to

wndclass.hbrBackground = CreateSolidBrush(RGB(255, 255, 255));

will produce a pure white background.

Additional reference words: 1.00