Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMPAPER.DMPAPER_USER is missing #106

Closed
VapidLinus opened this issue Feb 17, 2020 · 1 comment
Closed

DMPAPER.DMPAPER_USER is missing #106

VapidLinus opened this issue Feb 17, 2020 · 1 comment

Comments

@VapidLinus
Copy link

VapidLinus commented Feb 17, 2020

The enum DMPAPER has no entry for DMPAPER_USER which would have a value of 256.

The Microsoft documentation mentions it here (search for "DMPAPER_USER"):
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-devmodea

Therefore I am unable to set devmode.dmPaperSize to DMPAPER_USER.

This doesn't work because the enum doesn't contain this value:

DEVMODE devmode = default;
devmode.dmFields |= DMFIELDS.DM_PAPERSIZE | DMFIELDS.DM_PAPERLENGTH | DMFIELDS.DM_PAPERWIDTH;
devmode.dmPaperSize = (DMPAPER) 256;
devmode.dmPaperLength = 1000;
devmode.dmPaperWidth = 1000;
@dahall
Copy link
Owner

dahall commented Feb 17, 2020

I've added it. Thanks.

@dahall dahall closed this as completed Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants