Changeset 48
- Timestamp:
- Feb 10, 2008, 9:55:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Menufolder/c/wpswizzsettings.cpp ¶
r32 r48 455 455 PAGEINFO pageInfo; 456 456 HINI hini; 457 HOBJECT hObject;458 457 ULONG attrFound; 459 458 ULONG len; 460 CWWizzSettings* thisPtr; 461 462 459 CWWizzSettings* thisPtr; 463 460 464 461 switch(msg) { … … 503 500 { 504 501 char chrPath[CCHMAXPATH]; 505 502 HOBJECT hObject; 503 504 /* There is always a config.sys file on the boot drive */ 506 505 DosQuerySysInfo(QSV_BOOT_DRIVE, QSV_BOOT_DRIVE, &attrFound, sizeof(attrFound)); 507 506 sprintf(chrPath,"%c:\\config.sys", 'A'+attrFound-1); 507 hObject=WinQueryObject(chrPath); 508 508 509 509 switch(SHORT1FROMMP(mp1)) { … … 511 511 if(g_fInfoWindowEnabled){ 512 512 g_fInfoWindowEnabled=FALSE; 513 if( (hObject=WinQueryObject(chrPath))!=NULLHANDLE) {513 if(hObject!=NULLHANDLE) { 514 514 WinSetObjectData(hObject, SETUP_ENABLEINFOWINDOW"=0");/* This is catched in wpSetup() of CWObject */ 515 515 } … … 517 517 }// end if 518 518 else { 519 if( (hObject=WinQueryObject(chrPath))!=NULLHANDLE) {519 if(hObject!=NULLHANDLE) { 520 520 WinSetObjectData(hObject, SETUP_ENABLEINFOWINDOW"=1");/* This is catched in wpSetup() of CWObject */ 521 521 } … … 527 527 if(g_fHintsEnabled){ 528 528 g_fHintsEnabled=FALSE; 529 if( (hObject=WinQueryObject(chrPath))!=NULLHANDLE) {529 if(hObject!=NULLHANDLE) { 530 530 WinSetObjectData(hObject,SETUP_ENABLEHINTS"=0");/* This is catched in wpSetup() of CWObject */ 531 531 } … … 533 533 }// end if 534 534 else { 535 if( (hObject=WinQueryObject(chrPath))!=NULLHANDLE) {535 if(hObject!=NULLHANDLE) { 536 536 WinSetObjectData(hObject,SETUP_ENABLEHINTS"=1");/* This is catched in wpSetup() of CWObject */ 537 537 } … … 543 543 if(g_fRexxScriptsEnabled){ 544 544 g_fRexxScriptsEnabled=FALSE; 545 if( (hObject=WinQueryObject(chrPath))!=NULLHANDLE) {545 if(hObject!=NULLHANDLE) { 546 546 WinSetObjectData(hObject,SETUP_ENABLESCRIPTS"=0");/* This is catched in wpSetup() of CWObject */ 547 547 } … … 551 551 }// end if 552 552 else { 553 if( (hObject=WinQueryObject(chrPath))!=NULLHANDLE) {553 if(hObject!=NULLHANDLE) { 554 554 WinSetObjectData(hObject,SETUP_ENABLESCRIPTS"=1");/* This is catched in wpSetup() of CWObject */ 555 555 } … … 558 558 WinEnableWindow(WinWindowFromID(hwnd, ID_ENABLEHINTS), TRUE); 559 559 WinEnableWindow(WinWindowFromID(hwnd, IDCB_FLDRINFOWINDOW), TRUE); 560 } 561 560 } 562 561 break; 563 562 case FODLG_SHOWSIZE: 564 563 if(g_fFileSizeEnabled){ 565 564 g_fFileSizeEnabled=FALSE; 566 if( (hObject=WinQueryObject(chrPath))!=NULLHANDLE) {567 WinSetObjectData(hObject, "ENABLESIZEITEM=0");565 if(hObject!=NULLHANDLE) { 566 WinSetObjectData(hObject, SETUP_ENABLESIZEITEM"=0"); 568 567 } 569 568 ulOptions&=~FILESIZEENABLED; 570 569 }// end if 571 570 else { 572 if( (hObject=WinQueryObject(chrPath))!=NULLHANDLE) {573 WinSetObjectData(hObject, "ENABLESIZEITEM=1");571 if(hObject!=NULLHANDLE) { 572 WinSetObjectData(hObject, SETUP_ENABLESIZEITEM"=1"); 574 573 } 575 574 g_fFileSizeEnabled=TRUE; 576 575 ulOptions|=FILESIZEENABLED; 577 576 } 578 /* WinSendMsg(WinWindowFromID(hwnd, FODLG_SHOWSIZE),579 BM_SETCHECK,MPFROMSHORT(bFileSizeEnabled),(MPARAM)NULL);*/580 577 break; 581 578 case ID_NOFORMATMENUE: 582 if(bNoFormatMenue){ 583 if((hObject=WinQueryObject("<WP_DRIVE_C>"))!=NULLHANDLE) { 584 WinSetObjectData(hObject,"DISABLEFORMATMENU=0"); 585 } 586 bNoFormatMenue=FALSE; 587 ulOptions&=~NOFORMATMENUE; 588 }// end if 589 else{ 590 if((hObject=WinQueryObject("<WP_DRIVE_C>"))!=NULLHANDLE) { 591 WinSetObjectData(hObject,"DISABLEFORMATMENU=1"); 592 } 593 bNoFormatMenue=TRUE; 594 ulOptions|=NOFORMATMENUE; 579 { 580 DosQuerySysInfo(QSV_BOOT_DRIVE, QSV_BOOT_DRIVE, &attrFound, sizeof(attrFound)); 581 sprintf(chrPath,"<WP_DRIVE_%c>", 'A'+attrFound-1); 582 hObject=WinQueryObject(chrPath); 583 584 if(bNoFormatMenue){ 585 if(hObject!=NULLHANDLE) { 586 WinSetObjectData(hObject, SETUP_DISABLEFORMATMENU"=0"); 587 } 588 bNoFormatMenue=FALSE; 589 ulOptions&=~NOFORMATMENUE; 590 }// end if 591 else{ 592 if(hObject!=NULLHANDLE) { 593 WinSetObjectData(hObject, SETUP_DISABLEFORMATMENU"=1"); 594 } 595 bNoFormatMenue=TRUE; 596 ulOptions|=NOFORMATMENUE; 597 } 598 break; 595 599 } 596 break;597 600 case ID_CONTEXTMENUE: 598 601 if(bGlobalMenuEnabled){
Note:
See TracChangeset
for help on using the changeset viewer.