Changeset 377 for trunk/dll/seeall.c
- Timestamp:
- Jul 27, 2006, 8:28:31 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/dll/seeall.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/seeall.c
r335 r377 745 745 GetPString(IDS_TOTEXT), 746 746 newname); 747 WinSetWindowText(WinWindowFromID(hwndFrame, 748 SEEALL_STATUS), 747 WinSetWindowText(WinWindowFromID(hwndFrame,SEEALL_STATUS), 749 748 message); 750 749 if(fRealIdle) … … 1296 1295 NULL, 1297 1296 NULL); 1298 if(hwndObj) { 1297 if (!hwndObj) { 1298 Win_Error2(HWND_OBJECT,HWND_DESKTOP,pszSrcFile,__LINE__,IDS_WINCREATEWINDOW); 1299 if (!PostMsg(ad->hwndClient,WM_CLOSE,MPVOID,MPVOID)) 1300 WinSendMsg(ad->hwndClient,WM_CLOSE,MPVOID,MPVOID); 1301 } 1302 else { 1299 1303 ad->hwndObj = hwndObj; 1300 1304 WinSetWindowULong(hwndObj,QWL_USER,ad->hwndFrame); … … 1303 1307 WinDispatchMsg(hab2,&qmsg2); 1304 1308 WinDestroyWindow(hwndObj); 1305 }1306 else {1307 if(!PostMsg(ad->hwndClient,WM_CLOSE,MPVOID,MPVOID))1308 WinSendMsg(ad->hwndClient,WM_CLOSE,MPVOID,MPVOID);1309 1309 } 1310 1310 WinDestroyMsgQueue(hmq2); … … 2544 2544 WinSetWindowPtr(hwnd,QWL_USER,NULL); 2545 2545 pAD = xmallocz(sizeof(ALLDATA),pszSrcFile,__LINE__); 2546 if(pAD) { 2546 if (pAD) { 2547 HWND hwndFrame; 2547 2548 pAD->size = sizeof(ALLDATA); 2548 pAD->hwndFrame = WinQueryWindow(hwnd,QW_PARENT); 2549 hwndFrame = WinQueryWindow(hwnd,QW_PARENT); 2550 pAD->hwndFrame = hwndFrame; 2549 2551 pAD->mask.attrFile = FILE_READONLY | FILE_HIDDEN | 2550 2552 FILE_SYSTEM | FILE_ARCHIVED; … … 2629 2631 pAD->fattrs.usCodePage = Codepage; 2630 2632 memcpy(pAD->aulColors,Colors,sizeof(LONG) * COLORS_MAX); 2631 pAD->hwndMenu = WinWindowFromID( WinQueryWindow(hwnd,QW_PARENT),2633 pAD->hwndMenu = WinWindowFromID(hwndFrame, 2632 2634 FID_MENU); 2633 2635 SetConditionalCascade(pAD->hwndMenu,IDM_DELETESUBMENU, … … 2646 2648 pAD->hwndClient = hwnd; 2647 2649 pAD->hps = InitWindow(hwnd); 2648 pAD->hvscroll = WinWindowFromID( WinQueryWindow(hwnd,QW_PARENT),2650 pAD->hvscroll = WinWindowFromID(hwndFrame, 2649 2651 FID_VERTSCROLL); 2650 pAD->hhscroll = WinWindowFromID( WinQueryWindow(hwnd,QW_PARENT),2652 pAD->hhscroll = WinWindowFromID(hwndFrame, 2651 2653 FID_HORZSCROLL); 2652 2654 pAD->multiplier = 1; … … 2655 2657 else { 2656 2658 if (!DosCreateMutexSem(NULL,&pAD->hmtxScan,0L,FALSE)) { 2657 pAD->hwndStatus = WinCreateWindow( WinQueryWindow(hwnd,QW_PARENT),2659 pAD->hwndStatus = WinCreateWindow(hwndFrame, 2658 2660 GetPString(IDS_WCSEESTATUS), 2659 2661 NullStr, … … 2664 2666 0, 2665 2667 0, 2666 WinQueryWindow(hwnd,QW_PARENT),2668 hwndFrame, 2667 2669 HWND_TOP, 2668 2670 SEEALL_STATUS, 2669 2671 NULL, 2670 2672 NULL); 2673 if (!pAD->hwndStatus) 2674 Win_Error2(hwndFrame,hwnd,pszSrcFile,__LINE__,IDS_WINCREATEWINDOW); 2675 else 2671 2676 { 2672 2677 PFNWP oldproc; 2673 2674 oldproc = WinSubclassWindow(WinQueryWindow(hwnd,QW_PARENT), 2675 (PFNWP)SeeFrameWndProc); 2676 if(oldproc) 2677 WinSetWindowPtr(WinQueryWindow(hwnd,QW_PARENT), 2678 QWL_USER, 2679 (PVOID)oldproc); 2678 oldproc = WinSubclassWindow(hwndFrame,SeeFrameWndProc); 2679 WinSetWindowPtr(hwndFrame,QWL_USER,(PVOID)oldproc); 2680 2680 } 2681 2681 break;
Note:
See TracChangeset
for help on using the changeset viewer.
