bvGetPaperTypeByItsSizes
The function is used to map width and height of paper to constants
declared in wingdi.h file.
BESTVIEWAPI(LONG) bvGetPaperTypeByItsSizes(PAPERSIZETYPE *
pPaperSizeType, LONG Width,LONG Height,
LONG * pbRotated)
Parameters:
-
pPaperSizeType
- pointer to PAPERSIZETYPE structure which will be filled in if an appropriate
size is found
-
Width
- the width of the paper, in 0.001 mm
-
Height
- the height of the paper, in 0.001 mm
-
pbRotated - if the paper has to be rotated the value is set to
1
Return value: nonzero means that the paper size was found, zero - failure.
Warning:
Next types are not detected:
-
DMPAPER_RESERVED_48
-
DMPAPER_RESERVED_49
-
DMPAPER_JENV_KAKU2
-
DMPAPER_JENV_KAKU3
-
DMPAPER_JENV_CHOU3
-
DMPAPER_JENV_CHOU4
-
DMPAPER_JENV_KAKU2_ROTATED
-
DMPAPER_JENV_KAKU3_ROTATED
-
DMPAPER_JENV_CHOU3_ROTATED
-
DMPAPER_JENV_CHOU4_ROTATED
-
DMPAPER_JENV_YOU4
-
DMPAPER_JENV_YOU4_ROTATED
-
DMPAPER_P16K_ROTATED
-
DMPAPER_P32K_ROTATED
-
DMPAPER_P32KBIG_ROTATED