Changeset 574 for trunk/dll/inis.c
- Timestamp:
- Mar 23, 2007, 11:37:07 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/inis.c
r551 r574 5 5 6 6 Copyright (c) 1993-98 M. Kimes 7 Copyright (c) 2004, 200 6Steven H. Levine7 Copyright (c) 2004, 2007 Steven H. Levine 8 8 9 9 01 Aug 04 SHL Rework lstrip/rstrip usage … … 14 14 03 Nov 06 SHL Renames 15 15 03 Nov 06 SHL Count thread usage 16 22 Mar 07 GKY Use QWL_USER 16 17 17 18 ***********************************************************************/ … … 504 505 switch (msg) { 505 506 case WM_INITDLG: 506 WinSetWindowPtr(hwnd, 0, mp2);507 WinSetWindowPtr(hwnd, QWL_USER, mp2); 507 508 inidata = (INIDATA *) mp2; 508 509 WinSendDlgItemMsg(hwnd, IAF_SAVENAME, EM_SETTEXTLIMIT, … … 768 769 switch (msg) { 769 770 case WM_INITDLG: 770 WinSetWindowPtr(hwnd, 0, mp2);771 WinSetWindowPtr(hwnd, QWL_USER, mp2); 771 772 inirec = (INIREC *) mp2; 772 773 WinSendDlgItemMsg(hwnd, … … 819 820 switch (SHORT1FROMMP(mp1)) { 820 821 case DID_OK: 821 inirec = (INIREC *) WinQueryWindowPtr(hwnd, 0);822 inirec = (INIREC *) WinQueryWindowPtr(hwnd, QWL_USER); 822 823 if (inirec) { 823 824 WinQueryDlgItemText(hwnd, INII_NEWAPP, CCHMAXPATH, inirec->app2); … … 860 861 switch (msg) { 861 862 case WM_INITDLG: 862 WinSetWindowPtr(hwnd, 0, mp2);863 WinSetWindowPtr(hwnd, QWL_USER, mp2); 863 864 WinSendDlgItemMsg(hwnd, INIR_USERPROFILE, EM_SETTEXTLIMIT, 864 865 MPFROM2SHORT(CCHMAXPATH, 0), MPVOID); … … 966 967 switch (msg) { 967 968 case WM_INITDLG: 968 WinSetWindowPtr(hwnd, 0, mp2);969 WinSetWindowPtr(hwnd, QWL_USER, mp2); 969 970 WinSendDlgItemMsg(hwnd, 970 971 INIR_USERPROFILE, … … 1222 1223 if (inidata->edit) 1223 1224 WinSetWindowText(hwnd, GetPString(IDS_INIEDITINITITLETEXT)); 1224 WinSetWindowPtr(hwnd, 0, (PVOID) mp2);1225 WinSetWindowPtr(hwnd, QWL_USER, (PVOID) mp2); 1225 1226 WinSendDlgItemMsg(hwnd, 1226 1227 IAD_APPNAME, … … 1480 1481 MRESULT EXPENTRY IniLBSubProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 1481 1482 { 1482 PFNWP oldproc = (PFNWP) WinQueryWindowPtr(hwnd, 0);1483 PFNWP oldproc = (PFNWP) WinQueryWindowPtr(hwnd, QWL_USER); 1483 1484 static HWND hwndPopup = (HWND) 0; 1484 1485 … … 1534 1535 1535 1536 id = WinQueryWindowUShort(hwnd, QWS_ID); 1536 inidata = WinQueryWindowPtr(WinQueryWindow(hwnd, QW_PARENT), 0);1537 inidata = WinQueryWindowPtr(WinQueryWindow(hwnd, QW_PARENT), QWL_USER); 1537 1538 if (!inidata || !*inidata->ininame || !*inidata->applname || 1538 1539 !inidata->keyname) { … … 1689 1690 MRESULT EXPENTRY IniLBSubProc2(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 1690 1691 { 1691 PFNWP oldproc = (PFNWP) WinQueryWindowPtr(hwnd, 0);1692 PFNWP oldproc = (PFNWP) WinQueryWindowPtr(hwnd, QWL_USER); 1692 1693 1693 1694 switch (msg) { … … 1721 1722 FID_MENU); 1722 1723 inidata->hwndIni = hwnd; 1723 WinSetWindowPtr(hwnd, 0, (PVOID) inidata);1724 WinSetWindowPtr(hwnd, QWL_USER, (PVOID) inidata); 1724 1725 WinCheckMenuItem(inidata->hwndMenu, INI_CONFIRM, inidata->confirm); 1725 1726 … … 1808 1809 if (hwndMain && fAutoView) 1809 1810 PostMsg(hwndMain, UM_LOADFILE, MPVOID, MPVOID); 1810 inidata = WinQueryWindowPtr(hwnd, 0);1811 inidata = WinQueryWindowPtr(hwnd, QWL_USER); 1811 1812 if (inidata && hwndStatus) { 1812 1813 if (*inidata->ininame) { … … 1917 1918 1918 1919 case UM_INITIALSIZE: /* kludge */ 1919 inidata = WinQueryWindowPtr(hwnd, 0);1920 inidata = WinQueryWindowPtr(hwnd, QWL_USER); 1920 1921 if (inidata) 1921 1922 inidata->dontclose = TRUE; … … 1957 1958 case UM_LOADFILE: 1958 1959 /* load initial file */ 1959 inidata = WinQueryWindowPtr(hwnd, 0);1960 inidata = WinQueryWindowPtr(hwnd, QWL_USER); 1960 1961 if (inidata) { 1961 1962 if (mp1) { … … 2117 2118 WinSetDlgItemText(hwnd, INI_NUMDATA, "0"); 2118 2119 WinSendDlgItemMsg(hwnd, INI_DATALIST, LM_DELETEALL, MPVOID, MPVOID); 2119 inidata = WinQueryWindowPtr(hwnd, 0);2120 inidata = WinQueryWindowPtr(hwnd, QWL_USER); 2120 2121 } 2121 2122 return 0; … … 2259 2260 case IDM_INFO: 2260 2261 case IDM_MOVE: 2261 inidata = WinQueryWindowPtr(hwnd, 0);2262 inidata = WinQueryWindowPtr(hwnd, QWL_USER); 2262 2263 if (!inidata || !*inidata->ininame) 2263 2264 break; … … 2282 2283 2283 2284 case IDM_COMPARE: 2284 inidata = WinQueryWindowPtr(hwnd, 0);2285 inidata = WinQueryWindowPtr(hwnd, QWL_USER); 2285 2286 if (!inidata || !*inidata->ininame) 2286 2287 break; … … 2308 2309 case INI_RENAMEAPP: 2309 2310 case INI_RENAMEKEY: 2310 inidata = WinQueryWindowPtr(hwnd, 0);2311 inidata = WinQueryWindowPtr(hwnd, QWL_USER); 2311 2312 if (!inidata || 2312 2313 !*inidata->ininame || … … 2658 2659 WinStoreWindowPos(FM2Str, 2659 2660 "INIWindowPos", WinQueryWindow(hwnd, QW_PARENT)); 2660 inidata = WinQueryWindowPtr(hwnd, 0);2661 inidata = WinQueryWindowPtr(hwnd, QWL_USER); 2661 2662 } 2662 2663 WinDestroyWindow(WinQueryWindow(hwnd, QW_PARENT));
Note:
See TracChangeset
for help on using the changeset viewer.