Changeset 153 for trunk/src/helpers/winh.c
- Timestamp:
- Apr 14, 2002, 1:42:05 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/winh.c
r147 r153 60 60 #define INCL_WINSTATICS 61 61 #define INCL_WINMENUS 62 #define INCL_WINENTRYFIELDS 62 63 #define INCL_WINSCROLLBARS 63 64 #define INCL_WINLISTBOXES … … 2352 2353 * 2353 2354 *@@added V0.9.0 [umoeller] 2355 *@@changed V0.9.19 (2001-04-13) [umoeller]: added correlation for entry field repositioning, this was always off 2354 2356 */ 2355 2357 … … 2372 2374 LONG ldcx, ldcy; 2373 2375 ULONG cWindows = 0; 2376 2377 // V0.9.19 (2001-04-13) [umoeller] 2378 LONG cxMarginEF = 3 * WinQuerySysValue(HWND_DESKTOP, SV_CXBORDER); 2379 LONG cyMarginEF = 3 * WinQuerySysValue(HWND_DESKTOP, SV_CYBORDER); 2374 2380 2375 2381 // setup mode: … … 2391 2397 { 2392 2398 HWND hwndThis; 2399 CHAR szClass[10]; 2393 2400 if (hwndThis = WinWindowFromID(hwndDlg, SHORT1FROMMP(*pmpThis))) 2394 2401 { 2395 2402 WinQueryWindowPos(hwndThis, pswpThis); 2403 2404 // correlate the stupid repositioning of entry fields 2405 // V0.9.19 (2001-04-13) [umoeller] 2406 if ( (WinQueryClassName(hwndThis, sizeof(szClass), szClass) 2407 && (!strcmp(szClass, "#6")) 2408 && (WinQueryWindowULong(hwndThis, QWL_STYLE) & ES_MARGIN)) 2409 ) 2410 { 2411 pswpThis->x += cxMarginEF; 2412 pswpThis->y += cyMarginEF; 2413 pswpThis->cx -= 2 * cxMarginEF; 2414 pswpThis->cy -= 2 * cyMarginEF; 2415 } 2416 2396 2417 cWindows++; 2397 2418 } … … 2422 2443 ul++) 2423 2444 { 2424 HWND hwndThis = WinWindowFromID(hwndDlg, SHORT1FROMMP(*pmpThis));2425 if (hwndThis )2445 HWND hwndThis; 2446 if (hwndThis = WinWindowFromID(hwndDlg, SHORT1FROMMP(*pmpThis))) 2426 2447 { 2427 2448 LONG x = pswpThis->x,
Note:
See TracChangeset
for help on using the changeset viewer.