Changeset 1395 for trunk/dll/printer.c
- Timestamp:
- Feb 8, 2009, 2:48:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/printer.c
r1226 r1395 14 14 22 Mar 07 GKY Use QWL_USER 15 15 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 16 07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook. 16 17 17 18 ***********************************************************************/ … … 498 499 if (atol(s) < 24 || atol(s) > 4096) { 499 500 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_WIDTH)); 500 DosBeep(50, 100); 501 if (!fAlertBeepOff) 502 DosBeep(50, 100); 501 503 break; 502 504 } … … 508 510 if (atol(s) < 24 || atol(s) > 4096) { 509 511 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_LENGTH)); 510 DosBeep(50, 100); 512 if (!fAlertBeepOff) 513 DosBeep(50, 100); 511 514 break; 512 515 } … … 518 521 if (atol(s) < 0 || atol(s) > prnwidth - 1) { 519 522 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_LMARGIN)); 520 DosBeep(50, 100); 523 if (!fAlertBeepOff) 524 DosBeep(50, 100); 521 525 break; 522 526 } … … 528 532 if (atol(s) < 0 || atol(s) > (prnwidth - prnlmargin) - 1) { 529 533 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_RMARGIN)); 530 DosBeep(50, 100); 534 if (!fAlertBeepOff) 535 DosBeep(50, 100); 531 536 break; 532 537 } … … 539 544 atol(s) > prnwidth - ((prnlmargin + prnrmargin) - 1)) { 540 545 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_TABSPACES)); 541 DosBeep(50, 100); 546 if (!fAlertBeepOff) 547 DosBeep(50, 100); 542 548 break; 543 549 } … … 549 555 if (atol(s) < 0 || atol(s) > prnlength - 1) { 550 556 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_TMARGIN)); 551 DosBeep(50, 100); 557 if (!fAlertBeepOff) 558 DosBeep(50, 100); 552 559 break; 553 560 } … … 559 566 if (atol(s) < 0 || atol(s) > (prnlength - prntmargin) - 1) { 560 567 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_BMARGIN)); 561 DosBeep(50, 100); 568 if (!fAlertBeepOff) 569 DosBeep(50, 100); 562 570 break; 563 571 } … … 570 578 atol(s) > ((prnlength - prntmargin) - prnbmargin) - 1) { 571 579 WinSetFocus(HWND_DESKTOP, WinWindowFromID(hwnd, PRN_SPACING)); 572 DosBeep(50, 100); 580 if (!fAlertBeepOff) 581 DosBeep(50, 100); 573 582 break; 574 583 }
Note:
See TracChangeset
for help on using the changeset viewer.