Changeset 1394 for trunk/dll/mainwnd.c
- Timestamp:
- Feb 5, 2009, 5:17:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/mainwnd.c
r1391 r1394 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 200 8Steven H. Levine9 Copyright (c) 2001, 2009 Steven H. Levine 10 10 11 11 11 Jun 02 SHL Drop obsolete xor code … … 77 77 30 Dec 08 GKY Initialize tool bar background color to palegray not black 78 78 03 Jan 09 GKY Check for system that is protectonly to gray out Dos/Win command lines and prevent 79 79 Dos/Win programs from being inserted into the execute dialog with message why. 80 80 11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c 81 81 … … 942 942 } 943 943 944 void BubbleHelp(HWND hwnd, BOOL other, BOOL drive, BOOL above, char *help)944 void BubbleHelp(HWND hwnd, BOOL other, BOOL drive, BOOL above, PCSZ help) 945 945 { 946 946 if (help && *help && … … 954 954 } 955 955 956 VOID MakeBubble(HWND hwnd, BOOL above, CHAR *help)956 VOID MakeBubble(HWND hwnd, BOOL above, PCSZ help) 957 957 { 958 958 if (!hwnd || !help || !*help) … … 997 997 POINTL aptl[TXTBOX_COUNT], ptl, tptl; 998 998 LONG lxScreen, sx, sy, extra = 0, lyScreen; 999 char*p, *pp, *wp;999 CHAR *p, *pp, *wp; 1000 1000 SWP swp; 1001 1001 … … 1007 1007 SetPresParams(hwndBubble, NULL, NULL, NULL, FNT_8HELVETICA); 1008 1008 hps = WinGetPS(hwndBubble); 1009 p = help; 1009 // 03 Feb 09 SHL fixme to not overwrite? 1010 p = (PSZ)help; 1010 1011 tptl.x = tptl.y = 0; 1011 1012 while (p && *p) { … … 1228 1229 break; 1229 1230 default: 1230 1231 //fixme to allow user to change presparams 1-10-09 GKY 1231 1232 SetPresParams(hwnd, 1232 1233 &RGBGREY, … … 1322 1323 id = (USHORT) WinDlgBox(HWND_DESKTOP, hwnd, 1323 1324 PickToolProc, FM3ModHandle, 1324 PICKBTN_FRAME, GetPString(IDS_HIDETEXT));1325 PICKBTN_FRAME, (PSZ)GetPString(IDS_HIDETEXT)); 1325 1326 if (id) { 1326 1327 tool = find_tool(id); … … 1348 1349 id = 1349 1350 (USHORT) WinDlgBox(HWND_DESKTOP, hwnd, PickToolProc, FM3ModHandle, 1350 PICKBTN_FRAME, GetPString(IDS_DELETETEXT));1351 PICKBTN_FRAME, (PSZ)GetPString(IDS_DELETETEXT)); 1351 1352 if (id) 1352 1353 PostMsg(WinQueryWindow(hwnd, QW_PARENT), UM_SETUP, … … 1361 1362 id = 1362 1363 (USHORT) WinDlgBox(HWND_DESKTOP, hwnd, PickToolProc, FM3ModHandle, 1363 PICKBTN_FRAME, GetPString(IDS_EDITTEXT));1364 PICKBTN_FRAME, (PSZ)GetPString(IDS_EDITTEXT)); 1364 1365 if (id) { 1365 1366 tool = find_tool(id); … … 2275 2276 Win_Error2(hwndT, HWND_DESKTOP, pszSrcFile, __LINE__, 2276 2277 IDS_WINCREATEWINDOW); 2277 2278 2278 else { 2279 //fixme to allow user to change presparams 1-10-09 GKY 2279 2280 SetPresParams(hwndB, 2280 2281 &RGBGREY, … … 2404 2405 { 2405 2406 USHORT id = WinQueryWindowUShort(hwnd, QWS_ID); 2406 char *s = NULL;2407 PCSZ s = NULL; 2407 2408 2408 2409 if (fOtherHelp) { … … 2642 2643 hps = WinBeginPaint(hwnd, (HPS)0, NULL); 2643 2644 if (hps) { 2644 2645 2646 2647 2645 GpiCreateLogColorTable(hps, 0, LCOLF_RGB, 0, 0, NULL); 2646 if (!WinQueryPresParam(hwnd, PP_BACKGROUNDCOLOR, 0, NULL, 2647 sizeof(lColor), &lColor, 0)) 2648 lColor = 0x00CCCCCCL; //Palegray 2648 2649 WinQueryWindowRect(hwnd, &rcl); 2649 2650 WinFillRect(hps, &rcl, lColor); … … 2923 2924 */ 2924 2925 2925 INT SaveDirCnrState(HWND hwndClient, P SZ pszStateName)2926 INT SaveDirCnrState(HWND hwndClient, PCSZ pszStateName) 2926 2927 { 2927 2928 HENUM henum; … … 3426 3427 if (hwndDir) { 3427 3428 hwndC = WinWindowFromID(hwndDir, FID_CLIENT); 3428 3429 if (hwndC) { 3429 3430 HWND hwndCnr = WinWindowFromID(hwndC, DIR_CNR); 3430 3431 if (!hwndPPSave) { … … 3502 3503 MPFROMLONG(sizeof(CNRINFO)))) { 3503 3504 cnri.flWindowAttr = dcd->flWindowAttr; 3504 3505 3506 3507 3505 WinSendMsg(WinWindowFromID(hwndC, DIR_CNR), 3506 CM_SETCNRINFO, 3507 MPFROMP(&cnri), 3508 MPFROMLONG(CMA_FLWINDOWATTR)); 3508 3509 } 3509 3510 } … … 3513 3514 if (!PostMsg(hwndCnr, UM_SETUP2, NULL, NULL)) 3514 3515 WinSendMsg(hwndCnr, UM_SETUP2, NULL, NULL); 3515 3516 } 3516 3517 } 3517 3518 fRestored = TRUE; … … 5625 5626 else { 5626 5627 WinSubclassWindow(WinWindowFromID(hwndFrame, IDM_IDEALSIZE), 5627 5628 IdealButtonProc); 5628 5629 //fixme to allow user to change presparams 1-10-09 GKY 5629 5630 SetPresParams(WinWindowFromID(hwndFrame, … … 5715 5716 WC_COMBOBOX, 5716 5717 (PSZ) NULL, 5717 5718 5718 //WS_VISIBLE | 5719 CBS_DROPDOWN, 5719 5720 (swp.x + 5720 5721 WinQuerySysValue(HWND_DESKTOP, … … 5921 5922 /* start remaining child windows */ 5922 5923 if (!fNoSaveState && fSaveState) { 5923 P SZ pszStatename = GetPString(IDS_SHUTDOWNSTATE);5924 PCSZ pszStatename = GetPString(IDS_SHUTDOWNSTATE); 5924 5925 PostMsg(MainObjectHwnd, UM_RESTORE, MPFROMP(pszStatename), MPVOID); 5925 5926 if (!add_setup(pszStatename))
Note:
See TracChangeset
for help on using the changeset viewer.