GetPaperWidth

 

#include “BlackIceDEVMODE.h”

 

int       GetPaperWidth (BlackIceDEVMODE* pDevMode);

Description

Returns the value of the dmPaperWidth member of the DEVMODE. (DM.dmPaperWidth member of BlackIceDEVMODE ) This value represents the 'Actual paper width'.

The returned value is in tenths of millimeters. To convert the value to pixels, use the GetXDPI function and the following formula:

WidthInPixels = (float)GetPaperWidth(pDevMode) / 254.0 * (float)GetXDPI(pDevMode);

Parameters

BlackIceDEVMODE* pDevMode               - pointer to the BlackIceDEVMODE structure.

Return value

Paper width.

Programming Notes

None

Code Example

None