| 579 | // EditPrintInit() - Setup default page margin if no values from registry |
| 580 | // |
| 581 | extern "C" void EditPrintInit() |
| 582 | { |
| 583 | if (pagesetupMargin.left == -1 || pagesetupMargin.top == -1 || |
| 584 | pagesetupMargin.right == -1 || pagesetupMargin.bottom == -1) |
| 585 | { |
| 586 | WCHAR localeInfo[3]; |
| 587 | GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_IMEASURE, localeInfo, 3); |
| 588 | |
| 589 | if (localeInfo[0] == L'0') { // Metric system. L'1' is US System |
| 590 | pagesetupMargin.left = 2000; |
| 591 | pagesetupMargin.top = 2000; |
| 592 | pagesetupMargin.right = 2000; |
| 593 | pagesetupMargin.bottom = 2000; } |
| 594 | |
| 595 | else { |
| 596 | pagesetupMargin.left = 1000; |
| 597 | pagesetupMargin.top = 1000; |
| 598 | pagesetupMargin.right = 1000; |
| 599 | pagesetupMargin.bottom = 1000; } |
| 600 | } |
| 601 | } |
| 602 | |
| 603 | |
| 604 | // End of Print.cpp |