ID Number: Q78203
1.00
WINDOWS
buglist1.00
Summary:
PROBLEM ID: 9111001
SYMPTOMS
The function SetStretchBltMode() is passed an unsupported value as
its third parameter on line 231 of the BITMAP.C sample program that
shipped with Microsoft QuickC for Windows (QC/Win) version 1.0.
CAUSE
Line 231 of BITMAP.C appears as follows:
fStretchMode = IDM_BLACKONWHITE
The result of this statement is to set the variable fStretchMode to
400, since IDM_BLACKONWHITE is defined as such in BITMAP.H. This
variable, fStretchMode, is used as the third parameter in the call
to SetStretchBltMode(). The supported values of this third
parameter are BLACKONWHITE, WHITEONBLACK, and COLORONCOLOR, which
are defined as 1, 2, and 3, respectively, in WINDOWS.H. Therefore,
line 231 has set fStretchMode to a value that is not supported by
the function to which it is passed.
RESOLUTION
Change the line to read as follows:
fStretchMode = WHITEONBLACK;
This value is preferable to BLACKONWHITE, since the default item on
the Mode menu is white-on-black.
STATUS
Microsoft has confirmed this to be a problem in QC/Win version 1.0.
We are researching this problem and will post new information here
as it becomes available.
Additional reference words: 1.00 qcw