Changeset 1498 for trunk/dll/mainwnd.c
- Timestamp:
- Jan 18, 2010, 1:57:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/mainwnd.c
r1497 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 20 09Steven H. Levine9 Copyright (c) 2001, 2010 Steven H. Levine 10 10 11 11 11 Jun 02 SHL Drop obsolete xor code … … 104 104 aren't user settable; realappname should be used for setting applicable to 105 105 one or more miniapp but not to FM/2 106 17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *. 106 107 107 108 ***********************************************************************/ … … 390 391 MainObjectWndProc, 0, sizeof(PVOID)); 391 392 MainObjectHwnd = WinCreateWindow(HWND_OBJECT, 392 WC_OBJECTWINDOW,393 (CHAR *) WC_OBJECTWINDOW, 393 394 (PSZ) NULL, 394 395 0, … … 852 853 switch (id) { 853 854 case MAIN_CMDLIST: 854 WinSetWindowText(hwndStatus2, GetPString(IDS_CMDLISTHELP));855 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_CMDLISTHELP)); 855 856 break; 856 857 case MAIN_SETUPLIST: 857 WinSetWindowText(hwndStatus2, GetPString(IDS_SETUPLISTHELP));858 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_SETUPLISTHELP)); 858 859 break; 859 860 case MAIN_USERLIST: 860 WinSetWindowText(hwndStatus2, GetPString(IDS_USERLISTHELP));861 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_USERLISTHELP)); 861 862 break; 862 863 case MAIN_DRIVELIST: 863 WinSetWindowText(hwndStatus2, GetPString(IDS_DRIVELISTHELP));864 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_DRIVELISTHELP)); 864 865 break; 865 866 case MAIN_BUTTONLIST: 866 WinSetWindowText(hwndStatus2, GetPString(IDS_BUTTONLISTHELP));867 WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_BUTTONLISTHELP)); 867 868 break; 868 869 default: … … 1002 1003 1003 1004 hwndBubble = WinCreateWindow(HWND_DESKTOP, 1004 WC_BUBBLE,1005 help,1005 (CHAR *) WC_BUBBLE, 1006 (CHAR *) help, 1006 1007 WS_CLIPSIBLINGS | SS_TEXT | 1007 1008 DT_CENTER | DT_VCENTER, … … 1471 1472 0); /* Index to DRAGITEM */ 1472 1473 if (DrgVerifyRMF(pDItem, /* Check valid rendering */ 1473 DRM_OS2FILE, /* mechanisms and data */1474 (CHAR *) DRM_OS2FILE, /* mechanisms and data */ 1474 1475 NULL)) { /* formats */ 1475 1476 if (!(tool->flags & T_EMPHASIZED)) { … … 1572 1573 if (!(tool->flags & T_MYICON)) { 1573 1574 hwndTool = WinCreateWindow(hwndT, 1574 WC_TOOLBUTTONS,1575 (CHAR *) WC_TOOLBUTTONS, 1575 1576 s, 1576 1577 BS_NOPOINTERFOCUS | … … 1591 1592 btc.hImage = hbm; 1592 1593 hwndTool = WinCreateWindow(hwndT, 1593 WC_TOOLBUTTONS,1594 (CHAR *) WC_TOOLBUTTONS, 1594 1595 NullStr, 1595 1596 BS_NOPOINTERFOCUS | … … 1609 1610 if (!hwndTool) { 1610 1611 hwndTool = WinCreateWindow(hwndT, 1611 WC_TOOLBUTTONS,1612 (CHAR *) WC_TOOLBUTTONS, 1612 1613 (!tool->text && tool->id >= IDM_COMMANDSTART 1613 1614 && tool->id < … … 1625 1626 if (fToolTitles && !fTextTools) { 1626 1627 hwndTool = WinCreateWindow(hwndT, 1627 WC_STATIC,1628 (CHAR *) WC_STATIC, 1628 1629 tool->text, 1629 1630 SS_TEXT | DT_LEFT | DT_VCENTER, … … 1651 1652 1652 1653 hwndTool = WinCreateWindow(hwndT, 1653 WC_BUTTON,1654 (CHAR *) WC_BUTTON, 1654 1655 "#6010", 1655 1656 BS_NOPOINTERFOCUS | … … 1663 1664 PCSZ_WINCREATEWINDOW); 1664 1665 hwndTool = 1665 WinCreateWindow(hwndT, WC_BUTTON, "#6011",1666 WinCreateWindow(hwndT, (CHAR *) WC_BUTTON, "#6011", 1666 1667 BS_NOPOINTERFOCUS | BS_BITMAP | BS_PUSHBUTTON, 1, 4, 14, 1667 1668 13, hwndT, HWND_TOP, IDM_TOOLRIGHT, NULL, NULL); … … 2355 2356 if ((ulDriveMap & (1L << x)) && !(driveflags[x] & DRIVE_IGNORE)) { 2356 2357 hwndB = WinCreateWindow(hwndT, 2357 WC_DRIVEBUTTONS,2358 (CHAR *) WC_DRIVEBUTTONS, 2358 2359 0, 2359 2360 BS_NOPOINTERFOCUS | BS_USERBUTTON, … … 2372 2373 } // for 2373 2374 hwndB = WinCreateWindow(hwndT, 2374 WC_DRIVEBUTTONS,2375 (CHAR *) WC_DRIVEBUTTONS, 2375 2376 "#7001", 2376 2377 BS_NOPOINTERFOCUS | BS_BITMAP | BS_PUSHBUTTON, … … 2384 2385 PCSZ_WINCREATEWINDOW); 2385 2386 hwndB = WinCreateWindow(hwndT, 2386 WC_DRIVEBUTTONS,2387 (CHAR *) WC_DRIVEBUTTONS, 2387 2388 "#7000", 2388 2389 BS_NOPOINTERFOCUS | BS_BITMAP | BS_PUSHBUTTON, … … 2622 2623 WinQueryWindowPos(hwnd, &swp); 2623 2624 hwndB = WinCreateWindow(hwnd, 2624 WC_BUTTON,2625 (CHAR *) WC_BUTTON, 2625 2626 "+", 2626 2627 WS_VISIBLE | BS_PUSHBUTTON | … … 2635 2636 PCSZ_WINCREATEWINDOW); 2636 2637 hwndE = WinCreateWindow(hwnd, 2637 WC_ENTRYFIELD,2638 (CHAR *) WC_ENTRYFIELD, 2638 2639 NULL, 2639 2640 WS_VISIBLE | ES_AUTOSCROLL, … … 2655 2656 WinSetWindowText(hwndE, lastcmd); 2656 2657 else 2657 WinSetWindowText(hwndE, GetPString(IDS_HELPCMDTEXT));2658 WinSetWindowText(hwndE, (CHAR *) GetPString(IDS_HELPCMDTEXT)); 2658 2659 oldproce = WinSubclassWindow(hwndE, (PFNWP) CommandLineProc); 2659 2660 if (oldproce) … … 3056 3057 if (*lasttoolbar) { 3057 3058 sprintf(szKey, "%sToolbar", szPrefix); 3058 PrfWriteProfileString(fmprof, FM3Str, szKey, lasttoolbar);3059 PrfWriteProfileString(fmprof, (CHAR *) (CHAR *) FM3Str, szKey, lasttoolbar); 3059 3060 } 3060 3061 3061 3062 if (!fIsShutDownState) { 3062 3063 sprintf(szKey, "%sTargetDir", szPrefix); 3063 PrfWriteProfileString(fmprof, FM3Str, szKey, targetdir);3064 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, szKey, targetdir); 3064 3065 sprintf(szKey, "%sVersion", szPrefix); 3065 PrfWriteProfileString(fmprof, FM3Str, szKey, "3.16");3066 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, szKey, "3.16"); 3066 3067 } 3067 3068 … … 3087 3088 eos = &szKey[strlen(szKey)]; 3088 3089 strcpy(eos, "Pos"); 3089 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & swp,3090 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) & swp, 3090 3091 sizeof(SWP)); 3091 3092 dcd = WinQueryWindowPtr(WinWindowFromID(hwndC, DIR_CNR), QWL_USER); 3092 3093 if (dcd) { 3093 3094 strcpy(eos, "Sort"); 3094 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->sortFlags,3095 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) & dcd->sortFlags, 3095 3096 sizeof(INT)); 3096 3097 strcpy(eos, "Filter"); 3097 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) & dcd->mask,3098 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) & dcd->mask, 3098 3099 sizeof(MASK)); 3099 3100 strcpy(eos, "View"); … … 3114 3115 flWindowAttr |= CV_NAME; 3115 3116 } 3116 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) &flWindowAttr,3117 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &flWindowAttr, 3117 3118 sizeof(ULONG)); 3118 3119 WriteDetailsSwitches(szKeyBase, &dcd->ds, TRUE); … … 3120 3121 } 3121 3122 strcpy(eos, "Dir"); 3122 PrfWriteProfileString(fmprof, FM3Str, szKey, szDir);3123 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, szKey, szDir); 3123 3124 numsaves++; 3124 3125 } … … 3130 3131 3131 3132 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3132 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &previous_numsaves, &ulTemp)) {3133 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &previous_numsaves, &ulTemp)) { 3133 3134 ULONG size = 0; 3134 3135 3135 3136 sprintf(szKey, "%sVersion", szPrefix); 3136 PrfQueryProfileSize(fmprof, FM3Str, szKey, &size);3137 PrfQueryProfileSize(fmprof, (CHAR *) FM3Str, szKey, &size); 3137 3138 if (!size && fSaveState) { 3138 3139 for (ulTemp = 0; ulTemp < previous_numsaves; ulTemp++) 3139 3140 RemoveOldCnrSwitches(szPrefix, ulTemp); 3140 3141 sprintf(szKey, "%sVersion", szPrefix); 3141 PrfWriteProfileString(fmprof, FM3Str, szKey, "3.16");3142 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, szKey, "3.16"); 3142 3143 } 3143 3144 for (ulTemp = numsaves; ulTemp < previous_numsaves; ulTemp++) { … … 3148 3149 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3149 3150 if (numsaves) { 3150 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, sizeof(ULONG));3151 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &numsaves, sizeof(ULONG)); 3151 3152 WinQueryWindowPos(WinQueryWindow(hwndClient, QW_PARENT), &swp); 3152 3153 sprintf(szKey, "%sMySizeLastTime", szPrefix); 3153 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) &swp, sizeof(SWP));3154 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &swp, sizeof(SWP)); 3154 3155 if (WinQueryWindowPos(hwndTree, &swp)) { 3155 3156 sprintf(szKey, "%sLastTreePos", szPrefix); 3156 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) &swp, sizeof(SWP));3157 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &swp, sizeof(SWP)); 3157 3158 } 3158 3159 } 3159 3160 else if (fIsShutDownState) { 3160 PrfWriteProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, sizeof(ULONG));3161 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &numsaves, sizeof(ULONG)); 3161 3162 } 3162 3163 return numsaves; … … 3239 3240 if (fToolsChanged) 3240 3241 save_tools(NULL); 3241 PrfQueryProfileString(fmprof, FM3Str, szKey, NULL, lasttoolbar, sizeof(lasttoolbar));3242 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar);3242 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, szKey, NULL, lasttoolbar, sizeof(lasttoolbar)); 3243 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "LastToolbar", lasttoolbar); 3243 3244 load_tools(NULL); 3244 3245 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID); … … 3246 3247 sprintf(szKey, "%sTargetDir", szPrefix); 3247 3248 { 3248 PrfQueryProfileString(fmprof, FM3Str, szKey, NULL, targetdir, sizeof(targetdir));3249 PrfWriteProfileString(fmprof, FM3Str, "TargetDir", targetdir);3249 PrfQueryProfileString(fmprof, (CHAR *) FM3Str, szKey, NULL, targetdir, sizeof(targetdir)); 3250 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "TargetDir", targetdir); 3250 3251 SetTargetDir(NULLHANDLE, TRUE); 3251 3252 } 3252 3253 size = sizeof(SWP); 3253 3254 sprintf(szKey, "%sMySizeLastTime", szPrefix); 3254 if (!PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &swpO, &size) ||3255 if (!PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &swpO, &size) || 3255 3256 size != sizeof(SWP) || !swp.cx || !swp.cy) 3256 3257 { … … 3259 3260 // If restoring internally saved state, forget info 3260 3261 if (fDeleteState) 3261 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L);3262 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0L); 3262 3263 WinQueryWindowPos(WinQueryWindow(hwndClient, QW_PARENT), &swpN); 3263 3264 if (swpN.fl & (SWP_MINIMIZE | SWP_HIDE)) … … 3267 3268 size = sizeof(SWP); 3268 3269 sprintf(szKey, "%sLastTreePos", szPrefix); 3269 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &swp, &size)) {3270 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &swp, &size)) { 3270 3271 if (fDeleteState) 3271 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L);3272 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0L); 3272 3273 swp.hwnd = hwndTree; 3273 3274 TransformSwp(&swp, xtrans, ytrans); … … 3298 3299 sprintf(szKey, "%sNumDirsLastTime", szPrefix); 3299 3300 size = sizeof(ULONG); 3300 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, &size)) {3301 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &numsaves, &size)) { 3301 3302 if (fDeleteState) 3302 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L);3303 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0L); 3303 3304 for (x = numsaves - 1; x >= 0; x--) { 3304 3305 CHAR *eos = szKey; … … 3310 3311 strcpy(eos, "Pos"); 3311 3312 size = sizeof(SWP); 3312 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &swp, &size)) {3313 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &swp, &size)) { 3313 3314 strcpy(eos, "Dir"); ; 3314 3315 size = sizeof(szDir); 3315 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) szDir, &size)) {3316 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) szDir, &size)) { 3316 3317 // If restoring shutdown state and drive marked no prescan 3317 3318 // bypass window restore … … 3332 3333 if (!hwndPPSave) { 3333 3334 hwndPPSave = WinCreateWindow(hwndCnr, // Create a window (used to save default presparams) 3334 WC_CONTAINER,3335 (CHAR *) WC_CONTAINER, 3335 3336 NULL, 3336 3337 CCS_AUTOPOSITION | CCS_MINIICONS | … … 3362 3363 strcpy(eos, "Sort"); 3363 3364 size = sizeof(INT); 3364 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->sortFlags,3365 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &dcd->sortFlags, 3365 3366 &size)) { 3366 3367 if (!dcd->sortFlags) … … 3369 3370 size = sizeof(MASK); 3370 3371 strcpy(eos, "Filter"); 3371 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->mask, &size)) {3372 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &dcd->mask, &size)) { 3372 3373 if (*dcd->mask.szMask) 3373 3374 WinSendMsg(WinWindowFromID(hwndC, DIR_CNR), … … 3378 3379 if (!noview) { 3379 3380 size = sizeof(ULONG); 3380 if (PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &dcd->flWindowAttr,3381 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &dcd->flWindowAttr, 3381 3382 &size)) { 3382 3383 … … 4696 4697 GetPString(IDS_WARNINGTEXT), 4697 4698 GetPString(IDS_STATEADDFAILEDTEXT), szStateName); // 15 Apr 07 SHL failed 4698 WinSetWindowText(hwndStatelist, GetPString(IDS_STATETEXT));4699 WinSetWindowText(hwndStatelist, (CHAR *) GetPString(IDS_STATETEXT)); 4699 4700 } 4700 4701 } … … 4704 4705 GetPString(IDS_WARNINGTEXT), 4705 4706 GetPString(IDS_STATEDATASAVEFAILED)); 4706 WinSetWindowText(hwndStatelist, GetPString(IDS_STATETEXT));4707 WinSetWindowText(hwndStatelist, (CHAR *) GetPString(IDS_STATETEXT)); 4707 4708 } 4708 4709 } … … 4717 4718 sprintf(szKey, "%s.NumDirsLastTime", szStateName); 4718 4719 size = sizeof(ULONG); 4719 if (!PrfQueryProfileData(fmprof, FM3Str, szKey, (PVOID) &numsaves, &size)) {4720 if (!PrfQueryProfileData(fmprof, (CHAR *) FM3Str, szKey, (PVOID) &numsaves, &size)) { 4720 4721 saymsg(MB_ENTER | MB_ICONASTERISK, hwnd, 4721 4722 GetPString(IDS_WARNINGTEXT), … … 4725 4726 Runtime_Error(pszSrcFile, __LINE__, NULL); 4726 4727 else { 4727 PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0L);4728 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0L); 4728 4729 for (x = 0; x < numsaves; x++) { 4729 4730 sprintf(szKeyBase, "%s.DirCnr.%lu", szStateName, x); … … 4731 4732 size = 0; 4732 4733 sprintf(szKey, "%sVersion", szStateName); 4733 if (PrfQueryProfileSize(fmprof, FM3Str, szKey, &size) && size)4734 if (PrfQueryProfileSize(fmprof, (CHAR *) FM3Str, szKey, &size) && size) 4734 4735 RemoveOldCnrSwitches(szStateName, x); 4735 4736 } … … 5052 5053 else 5053 5054 fComments = TRUE; 5054 PrfWriteProfileData(fmprof, FM3Str, "Comments", &fComments, sizeof(BOOL));5055 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Comments", &fComments, sizeof(BOOL)); 5055 5056 WinSetWindowText((fComments) ? hwndAutoview : hwndAutoMLE, NullStr); 5056 5057 goto AutoChange; … … 5124 5125 PostMsg(WinQueryWindow(hwnd, QW_PARENT), WM_UPDATEFRAME, 5125 5126 MPFROMLONG(FCF_MENU), MPVOID); 5126 PrfWriteProfileData(fmprof, FM3Str, "MenuInvisible",5127 PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "MenuInvisible", 5127 5128 &MenuInvisible, sizeof(BOOL)); 5128 5129 } … … 5398 5399 strcpy(lasttoolbar, 5399 5400 quicktool[SHORT1FROMMP(mp1) - IDM_QUICKTOOLSTART - 1]); 5400 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar);5401 PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "LastToolbar", lasttoolbar); 5401 5402 } 5402 5403 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID); … … 5464 5465 5465 5466 if (!WinCreateWindow(hwndFrame, 5466 WC_BUTTON,5467 (CHAR *) WC_BUTTON, 5467 5468 "I", 5468 5469 WS_VISIBLE | BS_PUSHBUTTON | BS_NOPOINTERFOCUS, … … 5496 5497 5497 5498 hwndTmp = WinCreateWindow(hwndFrame, 5498 WC_BUTTON,5499 (CHAR *) WC_BUTTON, 5499 5500 "#1019", 5500 5501 WS_VISIBLE | BS_PUSHBUTTON | BS_NOPOINTERFOCUS | … … 5509 5510 5510 5511 hwndTmp = WinCreateWindow(hwndFrame, 5511 WC_BUTTON,5512 (CHAR *) WC_BUTTON, 5512 5513 "#3062", 5513 5514 WS_VISIBLE | BS_PUSHBUTTON | BS_NOPOINTERFOCUS | … … 5522 5523 5523 5524 hwndUserlist = WinCreateWindow(hwndFrame, 5524 WC_COMBOBOX,5525 (CHAR *) WC_COMBOBOX, 5525 5526 (PSZ) NULL, 5526 5527 WS_VISIBLE | CBS_DROPDOWN | … … 5541 5542 PCSZ_WINCREATEWINDOW); 5542 5543 hwndCmdlist = WinCreateWindow(hwndFrame, 5543 WC_COMBOBOX,5544 (CHAR *) WC_COMBOBOX, 5544 5545 (PSZ) NULL, 5545 5546 WS_VISIBLE | CBS_DROPDOWN | … … 5559 5560 Win_Error(hwnd, hwnd, pszSrcFile, __LINE__, 5560 5561 PCSZ_WINCREATEWINDOW); 5561 WinSetWindowText(hwndCmdlist, GetPString(IDS_COMMANDSTEXT));5562 WinSetWindowText(hwndCmdlist, (CHAR *) GetPString(IDS_COMMANDSTEXT)); 5562 5563 hwndStatelist = WinCreateWindow(hwndFrame, 5563 WC_COMBOBOX,5564 (CHAR *) WC_COMBOBOX, 5564 5565 (PSZ) NULL, 5565 5566 WS_VISIBLE | CBS_DROPDOWN | … … 5581 5582 5582 5583 hwndDrivelist = WinCreateWindow(hwndFrame, 5583 WC_COMBOBOX,5584 (CHAR *) WC_COMBOBOX, 5584 5585 (PSZ) NULL, 5585 5586 //WS_VISIBLE | … … 5602 5603 NULL, NULL, NULL, FNT_10SYSTEMMONOTEXT); 5603 5604 hwndButtonlist = WinCreateWindow(hwndFrame, 5604 WC_COMBOBOX,5605 (CHAR *) WC_COMBOBOX, 5605 5606 (PSZ) NULL, 5606 5607 WS_VISIBLE | CBS_DROPDOWN | … … 5706 5707 5707 5708 size = sizeof(BOOL); 5708 if (PrfQueryProfileData(fmprof, FM3Str, "MenuInvisible", &temp, &size) &&5709 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "MenuInvisible", &temp, &size) && 5709 5710 size && temp) 5710 5711 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_HIDEMENU, 0), MPVOID); 5711 5712 size = sizeof(BOOL); 5712 if (PrfQueryProfileData(fmprof, FM3Str, "FreeTree", &temp, &size) &&5713 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "FreeTree", &temp, &size) && 5713 5714 size && temp) 5714 5715 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_FREETREE, 0), MPVOID); 5715 5716 size = sizeof(BOOL); 5716 if (PrfQueryProfileData(fmprof, FM3Str, "AutoTile", &temp, &size) &&5717 if (PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "AutoTile", &temp, &size) && 5717 5718 size && !temp) 5718 5719 WinSendMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_AUTOTILE, 0), MPVOID); … … 5745 5746 if (!fSaveState || 5746 5747 !PrfQueryProfileData(fmprof, 5747 FM3Str,5748 (CHAR *) FM3Str, 5748 5749 "LastTreePos", 5749 5750 &swp, &size) || size != sizeof(SWP)) { … … 5755 5756 size = sizeof(ratio); 5756 5757 if (!PrfQueryProfileData(fmprof, 5757 FM3Str,5758 (CHAR *) FM3Str, 5758 5759 "TreeWindowRatio", 5759 5760 (PVOID) & ratio, … … 5946 5947 WinQueryWindowPos(WinQueryWindow(hwnd, QW_PARENT), &swp); 5947 5948 if (!(swp.fl & (SWP_HIDE | SWP_MINIMIZE))) { 5948 WinStoreWindowPos( FM2Str,5949 WinStoreWindowPos((CHAR *) FM2Str, 5949 5950 "MainWindowPos", WinQueryWindow(hwnd, QW_PARENT)); 5950 5951 if (!fNoSaveState && fSaveState) … … 6084 6085 priority_bumped(); 6085 6086 } 6086 WinSetWindowText(hwndButtonlist, GetPString(IDS_TOOLBARTEXT));6087 WinSetWindowText(hwndButtonlist, (CHAR *) GetPString(IDS_TOOLBARTEXT)); 6087 6088 } 6088 6089 return 0; … … 6191 6192 MPFROM2SHORT(0, 0), 6192 6193 MPFROMP(GetPString(IDS_NEWDIRECTORYTEXT))); 6193 WinSetWindowText(hwndUserlist, GetPString(IDS_COMMONDIRTEXT));6194 WinSetWindowText(hwndUserlist, (CHAR *) GetPString(IDS_COMMONDIRTEXT)); 6194 6195 } 6195 6196 return 0; … … 6265 6266 strcpy(path, pFM2SaveDirectory); 6266 6267 if (!PMMkDir(hwnd, path, TRUE)) { 6267 WinSetWindowText(hwndUL, GetPString(IDS_COMMONDIRTEXT));6268 WinSetWindowText(hwndUL, (CHAR *) GetPString(IDS_COMMONDIRTEXT)); 6268 6269 break; 6269 6270 } … … 6295 6296 load_tools(path); 6296 6297 PrfWriteProfileString(fmprof, 6297 FM3Str, "LastToolbar", lasttoolbar);6298 (CHAR *) FM3Str, "LastToolbar", lasttoolbar); 6298 6299 PostMsg(hwndToolback, UM_SETUP2, MPVOID, MPVOID); 6299 WinSetWindowText(hwndButtonlist, GetPString(IDS_TOOLBARTEXT));6300 WinSetWindowText(hwndButtonlist, (CHAR *) GetPString(IDS_TOOLBARTEXT)); 6300 6301 } 6301 6302 else if (SHORT1FROMMP(mp1) == MAIN_SETUPLIST) { … … 6308 6309 sprintf(szKey, "%s.NumDirsLastTime", path); // path is state name 6309 6310 if (!PrfQueryProfileData(fmprof, 6310 FM3Str,6311 (CHAR *) FM3Str, 6311 6312 szKey, 6312 6313 (PVOID)&numsaves, … … 6366 6367 MPVOID); 6367 6368 } 6368 WinSetWindowText(hwndCmdlist, GetPString(IDS_COMMANDSTEXT));6369 WinSetWindowText(hwndCmdlist, (CHAR *) GetPString(IDS_COMMANDSTEXT)); 6369 6370 } 6370 6371 }
Note:
See TracChangeset
for help on using the changeset viewer.