Changeset 1366 for trunk/dll/grep2.c
- Timestamp:
- Jan 1, 2009, 10:36:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/grep2.c
r1335 r1366 188 188 CHAR simple[8192]; 189 189 CHAR path[CCHMAXPATH]; 190 GREPINFO *GrepInfo; 190 191 191 192 static CHAR lastmask[8192] = "*"; … … 200 201 static BOOL findifany = TRUE; 201 202 static BOOL gRemember = FALSE; 202 ULONG size = sizeof(BOOL);203 ULONG size; 203 204 static UINT newer = 0; 204 205 static UINT older = 0; … … 212 213 break; 213 214 } 214 WinSetWindowULong(hwnd, QWL_USER, *(HWND *) mp2); 215 GrepInfo = mp2; 216 if (GrepInfo->szGrepPath) 217 BldFullPathName(lastmask, GrepInfo->szGrepPath, "*"); 218 WinSetWindowULong(hwnd, QWL_USER, *(HWND *) GrepInfo->hwnd); 215 219 WinSendDlgItemMsg(hwnd, 216 220 GREP_MASK, … … 232 236 WinSetDlgItemText(hwnd, GREP_MASK, lastmask); 233 237 WinSendDlgItemMsg(hwnd, 234 GREP_MASK, EM_SETSEL, MPFROM2SHORT(0, 8192), MPVOID); 238 GREP_MASK, EM_SETSEL, MPFROM2SHORT(0, 8192), MPVOID); 239 size = sizeof(BOOL); 235 240 PrfQueryProfileData(fmprof, FM3Str, "RememberFlagsGrep", 236 241 (PVOID) & gRemember, &size); 237 242 WinCheckButton(hwnd, GREP_REMEMBERFLAGS, gRemember); 238 243 if (gRemember) { 244 size = sizeof(BOOL); 239 245 PrfQueryProfileData(fmprof, FM3Str, "Grep_Recurse", 240 (PVOID) & recurse, &size); 246 (PVOID) & recurse, &size); 247 size = sizeof(BOOL); 241 248 PrfQueryProfileData(fmprof, FM3Str, "Grep_Absolute", 242 (PVOID) & absolute, &size); 249 (PVOID) & absolute, &size); 250 size = sizeof(BOOL); 243 251 PrfQueryProfileData(fmprof, FM3Str, "Grep_Case", 244 (PVOID) & sensitive, &size); 252 (PVOID) & sensitive, &size); 253 size = sizeof(BOOL); 245 254 PrfQueryProfileData(fmprof, FM3Str, "Grep_Sayfiles", 246 (PVOID) & sayfiles, &size); 255 (PVOID) & sayfiles, &size); 256 size = sizeof(BOOL); 247 257 PrfQueryProfileData(fmprof, FM3Str, "Grep_Searchfiles", 248 (PVOID) & searchFiles, &size); 258 (PVOID) & searchFiles, &size); 259 size = sizeof(BOOL); 249 260 PrfQueryProfileData(fmprof, FM3Str, "Grep_SearchfEAs", 250 261 (PVOID) & searchEAs, &size);
Note:
See TracChangeset
for help on using the changeset viewer.