Changeset 1673 for trunk/dll/misc.c
- Timestamp:
- Dec 30, 2012, 7:51:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/misc.c
r1647 r1673 118 118 #include "info.h" // driveflags 119 119 120 #define CONTAINER_COLUMNS 13 / * Number of columns in details view */120 #define CONTAINER_COLUMNS 13 // Number of columns in details view 121 121 #define MS_POPUP 0x00000010L 122 122 … … 302 302 void PaintSTextWindow(HWND hwnd, HPS hps) 303 303 { 304 /* 304 /** 305 305 * paint a text window such that the rightmost part of the text is 306 306 * always visible even if the text length exceeds the length of the … … 364 364 VOID PaintRecessedWindow(HWND hwnd, HPS hps, BOOL outtie, BOOL dbl) 365 365 { 366 /* 366 /** 367 367 * paint a recessed box around the window 368 368 * two pixels width required around window for painting... … … 947 947 strchr(szData, '*') || IsRoot(pci->pszFileName)) 948 948 return (MRESULT) FALSE; 949 / * If the text changed, rename the file system object. */949 // If the text changed, rename the file system object. 950 950 chop_at_crnl(szData); 951 951 bstrip(szData); … … 969 969 if (stricmp(szData, testname) && IsFile(testname) != -1) { 970 970 if (!fAlertBeepOff) 971 DosBeep(50, 100); /* exists; disallow */972 return (MRESULT) FALSE; 971 DosBeep(50, 100); 972 return (MRESULT) FALSE; // exists; disallow 973 973 } 974 974 if (fVerify && (driveflags[toupper(*szData) - 'A'] & DRIVE_WRITEVERIFYOFF || … … 1296 1296 VOID FcloseFile(FILE * fp) 1297 1297 { 1298 / * for use by apps that don't use the DLLs runtime library */1298 // for use by apps that don't use the DLLs runtime library 1299 1299 fclose(fp); 1300 1300 } … … 1684 1684 MPFROMLONG(CMA_FIRST), 1685 1685 MPFROMSHORT(attrib)); 1686 if ((!pmi || (INT) pmi == -1) && attrib == CRA_SELECTED) / * punt */1686 if ((!pmi || (INT) pmi == -1) && attrib == CRA_SELECTED) // punt 1687 1687 attrib = CRA_CURSORED; 1688 1688 else … … 1899 1899 HWND CheckMenu(HWND hwnd, HWND * hwndMenu, USHORT id) 1900 1900 { 1901 / * load and adjust menus as required */1901 // load and adjust menus as required 1902 1902 if (!*hwndMenu || !WinIsWindow((HAB) 0, *hwndMenu)) { 1903 1903 *hwndMenu = WinLoadMenu(HWND_DESKTOP, FM3ModHandle, id); … … 2301 2301 void SetupWinList(HWND hwndMenu, HWND hwndTop, HWND hwndFrame) 2302 2302 { 2303 /* 2303 /** 2304 2304 * add switchlist entries to end of pulldown menu 2305 2305 */ … … 2311 2311 MM_QUERYITEMCOUNT, MPVOID, MPVOID); 2312 2312 2313 / * clean out old additions */2313 // clean out old additions 2314 2314 while ((SHORT) WinSendMsg(hwndMenu, 2315 2315 MM_DELETEITEM, … … 2331 2331 HWND hwndChild; 2332 2332 2333 / * add children of the main FM/2 client */2333 // add children of the main FM/2 client 2334 2334 henum = WinBeginEnumWindows(hwndTop); 2335 2335 memset(&mi, 0, sizeof(mi)); … … 2355 2355 } 2356 2356 2357 / * add external FM/2 windows */2357 // add external FM/2 windows 2358 2358 { 2359 2359 PSWBLOCK pswb; … … 2363 2363 2364 2364 hwndTopFrame = hwndTop ? WinQueryWindow(hwndTop, QW_PARENT) : (HWND)0; 2365 / * Get the switch list information */2365 // Get the switch list information 2366 2366 x = 0; 2367 2367 ulcEntries = WinQuerySwitchList(0, NULL, 0); 2368 2368 ulSize = sizeof(SWBLOCK) + sizeof(HSWITCH) + (ulcEntries + 4L) * 2369 2369 (LONG) sizeof(SWENTRY); 2370 / * Allocate memory for list */2370 // Allocate memory for list 2371 2371 pswb = xmalloc(ulSize, pszSrcFile, __LINE__); 2372 2372 if (pswb) { 2373 / * Put the info in the list */2373 // Put the info in the list 2374 2374 ulcEntries = WinQuerySwitchList(0, pswb, ulSize - sizeof(SWENTRY)); 2375 / * do the dirty deed */2375 // do the dirty deed 2376 2376 memset(&mi, 0, sizeof(mi)); 2377 2377 for (i = 0; i < pswb->cswentry; i++) { … … 2420 2420 2421 2421 if (hwndMain && hwndMenu && cmd >= IDM_WINDOWSTART && cmd < IDM_SWITCHSTART) { 2422 /* 2423 * select a child window (of client) 2424 */ 2422 // select a child window (of client) 2425 2423 2426 2424 MENUITEM mi;
Note:
See TracChangeset
for help on using the changeset viewer.