- Timestamp:
- Jun 23, 2001, 9:21:56 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/user32.cpp
r5993 r6073 1 /* $Id: user32.cpp,v 1.10 1 2001-06-13 10:29:45 sandervlExp $ */1 /* $Id: user32.cpp,v 1.102 2001-06-23 07:21:56 achimha Exp $ */ 2 2 3 3 /* … … 40 40 #include "pmwindow.h" 41 41 #include "oslibgdi.h" 42 #include "oslibwin.h" 43 #include "oslibprf.h" 42 44 43 45 #include <wchar.h> 44 46 #include <stdlib.h> 45 47 #include <string.h> 46 #include <oslibwin.h>48 //#include <oslibwin.h> 47 49 #include <win32wnd.h> 48 50 #include <winuser.h> … … 626 628 BOOL rc = TRUE; 627 629 630 dprintf(("USER32: SystemParametersInfoA uiAction: %d, uiParam: %d, pvParam: %d, fWinIni: %d\n", 631 uiAction, uiParam, pvParam, fWinInit)); 632 628 633 switch(uiAction) { 634 635 case SPI_GETBEEP: 636 *(ULONG*)pvParam = OSLibWinQuerySysValue(SVOS_ALARM); 637 break; 638 639 case SPI_GETKEYBOARDDELAY: 640 *(PULONG)pvParam = OSLibPrfQueryProfileInt(OSLIB_HINI_USER, "PM_ControlPanel", 641 "KeyRepeatDelay", 90); 642 break; 643 644 case SPI_GETKEYBOARDSPEED: 645 *(PULONG)pvParam = OSLibPrfQueryProfileInt(OSLIB_HINI_USER, "PM_ControlPanel", 646 "KeyRepeatRate", 19); 647 break; 648 649 #if 0 650 // TODO: Make OSLib a seperate DLL and use it everywhere? 651 case SPI_GETMOUSE: 652 { 653 ULONG retCode; 654 retCode = OSLibDosOpen( 655 break; 656 } 657 #endif 658 659 case SPI_SETBEEP: 660 // we don't do anything here. Win32 apps shouldn't change OS/2 settings 661 dprintf(("USER32: SPI_SETBEEP is ignored!\n")); 662 break; 663 664 case SPI_SETBORDER: 665 // TODO make this for Win32 apps only, Open32 changes OS/2 settings! 666 dprintf(("USER32: SPI_SETBORDER is ignored, implement!\n")); 667 break; 668 669 case SPI_SETDOUBLECLKHEIGHT: 670 // TODO make this for Win32 apps only, Open32 changes OS/2 settings! 671 dprintf(("USER32: SPI_SETDOUBLECLICKHEIGHT is ignored, implement!\n")); 672 break; 673 674 case SPI_SETDOUBLECLKWIDTH: 675 // TODO make this for Win32 apps only, Open32 changes OS/2 settings! 676 dprintf(("USER32: SPI_SETDOUBLECLICKWIDTH is ignored, implement!\n")); 677 break; 678 679 case SPI_SETDOUBLECLICKTIME: 680 // TODO make this for Win32 apps only, Open32 changes OS/2 settings! 681 dprintf(("USER32: SPI_SETDOUBLECLICKTIME is ignored, implement!\n")); 682 break; 683 684 case SPI_SETKEYBOARDDELAY: 685 // TODO make this for Win32 apps only, Open32 changes OS/2 settings! 686 dprintf(("USER32: SPI_SETKEYBOARDDELAY is ignored, implement!\n")); 687 break; 688 689 case SPI_SETKEYBOARDSPEED: 690 // TODO make this for Win32 apps only, Open32 changes OS/2 settings! 691 dprintf(("USER32: SPI_SETKEYBOARDSPEED is ignored, implement!\n")); 692 break; 693 694 case SPI_SETMOUSE: 695 // TODO make this for Win32 apps only, Open32 changes OS/2 settings! 696 dprintf(("USER32: SPI_SETMOUSE is ignored, implement!\n")); 697 break; 698 699 case SPI_SETMOUSEBUTTONSWAP: 700 // TODO make this for Win32 apps only, Open32 changes OS/2 settings! 701 dprintf(("USER32: SPI_SETMOUSEBUTTONSWAP is ignored, implement!\n")); 702 break; 703 629 704 case SPI_SCREENSAVERRUNNING: 630 705 *(BOOL *)pvParam = FALSE; 631 706 break; 707 632 708 case SPI_GETDRAGFULLWINDOWS: 633 709 *(BOOL *)pvParam = FALSE; //CB: where is the Warp 4 setting stored? … … 755 831 756 832 default: 757 rc = O32_SystemParametersInfo(uiAction, uiParam, pvParam, fWinIni); 833 dprintf(("System parameter value is not supported!\n")); 834 rc = FALSE; 835 // AH: no longer call Open32 836 //rc = O32_SystemParametersInfo(uiAction, uiParam, pvParam, fWinIni); 758 837 break; 759 838 }
Note:
See TracChangeset
for help on using the changeset viewer.