Changeset 1364 for trunk/dll/mainwnd.c


Ignore:
Timestamp:
Dec 30, 2008, 3:54:32 PM (17 years ago)
Author:
Gregg Young
Message:

This should fix the black toolbar on install problem (Ticket 328)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/mainwnd.c

    r1363 r1364  
    26042604  case WM_CREATE:
    26052605    hwndToolback = hwnd;
    2606     RestorePresParams(hwnd, "ToolBar");
    26072606    break;
    26082607
     
    26262625
    26272626  case WM_PAINT:
    2628 
    2629     PaintRecessedWindow(hwnd, (HPS)0, TRUE, FALSE);
    2630 
    26312627    {
    26322628      HPS hps;
    26332629      RECTL rcl;
    2634       ULONG lColor = NULL;
     2630      ULONG lColor = 0L;
    26352631
    26362632      hps = WinBeginPaint(hwnd, (HPS)0, NULL);
    26372633      if (hps) {
    2638         GpiCreateLogColorTable(hps, 0, LCOLF_RGB, 0, 0, NULL);
    2639         if (!(WinQueryPresParam(hwnd, PP_BACKGROUNDCOLOR, 0, NULL,
    2640                                 sizeof(lColor), &lColor, 0)))
    2641           lColor = CLR_PALEGRAY;
     2634        GpiCreateLogColorTable(hps, 0, LCOLF_RGB, 0, 0, NULL);
     2635        if (!WinQueryPresParam(hwnd, PP_BACKGROUNDCOLOR, 0, NULL,
     2636                               sizeof(lColor), &lColor, 0))
     2637          lColor = 0x00CCCCCCL; //Palegray
    26422638        WinQueryWindowRect(hwnd, &rcl);
    26432639        WinFillRect(hps, &rcl, lColor);
     
    26582654      TOOL *tool;
    26592655
     2656      RestorePresParams(hwnd, "ToolBar");
    26602657      id = SHORT1FROMMP(mp1);
    26612658      tool = find_tool(id);
Note: See TracChangeset for help on using the changeset viewer.