Changeset 926
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/fm3dll.h
r924 r926 685 685 HAPP Exec(HWND hwndNotify, BOOL child, char *startdir, char *env, 686 686 PROGTYPE * progt, ULONG fl, char *formatstring, ...); 687 #define MAXCOMLINESTRG ( 4096) /* used to build command line strings */687 #define MAXCOMLINESTRG (2048) /* used to build command line strings */ 688 688 #define RUNTYPE_MASK 0xf 689 689 #define SYNCHRONOUS 1 -
trunk/dll/init.c
r922 r926 830 830 WinRegisterClass(hab, 831 831 WC_TOOLBACK, 832 ToolBackProc, CS_SIZEREDRAW, sizeof(PVOID)); 832 ToolBackProc, 833 CS_SYNCPAINT | CS_SIZEREDRAW | CS_PARENTCLIP, 834 sizeof(PVOID)); 833 835 WinRegisterClass(hab, 834 836 WC_DRIVEBACK, -
trunk/dll/mainwnd.c
r925 r926 2467 2467 case WM_CREATE: 2468 2468 hwndToolback = hwnd; 2469 SetPresParams(hwnd, 2470 &RGBGREY, &RGBBLACK, &RGBGREY, GetPString(IDS_8HELVTEXT)); 2469 RestorePresParams(hwnd, "ToolBar"); 2471 2470 break; 2472 2471 … … 2490 2489 2491 2490 case WM_PAINT: 2491 2492 PaintRecessedWindow(hwnd, (HPS)0, TRUE, FALSE); 2493 2492 2494 { 2493 2495 HPS hps; 2494 2496 RECTL rcl; 2495 2496 hps = WinBeginPaint(hwnd, (HPS) 0, NULL); 2497 ULONG lColor; 2498 2499 hps = WinBeginPaint(hwnd, (HPS)0, NULL); 2497 2500 if (hps) { 2498 WinQueryWindowRect(hwnd, &rcl); 2499 WinFillRect(hps, &rcl, CLR_PALEGRAY); 2500 WinEndPaint(hps); 2501 } 2502 PaintRecessedWindow(hwnd, (HPS) 0, TRUE, FALSE); 2503 } 2501 GpiCreateLogColorTable(hps, 0, LCOLF_RGB, 0, 0, NULL); 2502 WinQueryPresParam(hwnd, /* Window handle */ 2503 PP_BACKGROUNDCOLOR, /* Background presparam */ 2504 0, 2505 NULL, 2506 sizeof(lColor), /* Length of data buffer */ 2507 &lColor, /* Data buffer returned */ 2508 0); 2509 WinQueryWindowRect(hwnd, &rcl); 2510 WinFillRect(hps, &rcl, lColor); 2511 WinEndPaint(hps); 2512 } 2513 2514 } 2515 break; 2516 2517 case WM_PRESPARAMCHANGED: 2518 PresParamChanged(hwnd, "ToolBar", mp1, mp2); 2519 WinInvalidateRect(hwnd, NULL, TRUE); 2504 2520 break; 2505 2521
Note:
See TracChangeset
for help on using the changeset viewer.