Ignore:
Timestamp:
Jan 29, 2003, 7:41:39 PM (23 years ago)
Author:
umoeller
Message:

New build system, multimedia, other misc fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/cctl_toolbar.c

    r242 r243  
    186186    LONG    lLeft,
    187187            lRight,
    188             lColorMiddle = pbd->dwd.lcolBackground;
     188            lColorMiddle = ctlQueryColor(&pbd->dwd, CTLCOL_BGND); // pbd->dwd.lcolBackground;
    189189    RECTL   rclWin,
    190190            rclTemp;
     
    344344       )
    345345    {
    346         GpiSetColor(hps, pbd->dwd.lcolForeground);
     346        GpiSetColor(hps,
     347                    ctlQueryColor(&pbd->dwd, CTLCOL_FGND)); // pbd->dwd.lcolForeground);
    347348        rclTemp.yTop -= 2 * TBB_TEXTSPACING + lOfs;
    348349        rclTemp.xRight += 2 * lOfs;     // twice the offset because we center horizontally
     
    354355}
    355356
    356 static const SYSCOLORSET G_scsToolbarButton =
     357/* static const SYSCOLORSET G_scsToolbarButton =
    357358    {
    358359        TRUE,       // inherit presparams
     
    360361        SYSCLR_BUTTONMIDDLE,
    361362        SYSCLR_MENUTEXT
     363    };
     364*/
     365
     366static const CCTLCOLOR G_scsToolbarButton[] =
     367    {
     368        TRUE, PP_BACKGROUNDCOLOR, SYSCLR_BUTTONMIDDLE,
     369        TRUE, PP_FOREGROUNDCOLOR, SYSCLR_MENUTEXT,
    362370    };
    363371
     
    445453                   &pData->bd.dwd,
    446454                   WinDefWindowProc,
    447                    &G_scsToolbarButton);
     455                   0,
     456                   G_scsToolbarButton,
     457                   ARRAYITEMCOUNT(G_scsToolbarButton));
    448458
    449459        if (    (pcszText)
     
    851861 ********************************************************************/
    852862
    853 static const SYSCOLORSET G_scsToolbar =
    854     {
    855         TRUE,       // inherit presparams
    856         SYSCLR_MENU,
    857         SYSCLR_MENUTEXT
     863static const CCTLCOLOR G_scsToolbar[] =
     864    {
     865        TRUE, PP_BACKGROUNDCOLOR, SYSCLR_MENU,
     866        TRUE, PP_FOREGROUNDCOLOR, SYSCLR_MENUTEXT
    858867    };
    859868
     
    10171026                           (PVOID)pcszFont);
    10181027
    1019         lColor = winhQueryPresColor2(pData->dwd.hwnd,
    1020                                      PP_BACKGROUNDCOLOR,
    1021                                      PP_BACKGROUNDCOLORINDEX,
    1022                                      FALSE,
    1023                                      G_scsToolbar.lBackIndex);
     1028        lColor = ctlQueryColor(&pData->dwd, CTLCOL_BGND);
    10241029        winhStorePresParam(&ppp,
    10251030                           PP_BACKGROUNDCOLOR,
     
    10271032                           &lColor);
    10281033
    1029         lColor = winhQueryPresColor2(pData->dwd.hwnd,
    1030                                      PP_FOREGROUNDCOLOR,
    1031                                      PP_FOREGROUNDCOLORINDEX,
    1032                                      FALSE,
    1033                                      G_scsToolbar.lForeIndex);
     1034        lColor = ctlQueryColor(&pData->dwd, CTLCOL_FGND);
    10341035        winhStorePresParam(&ppp,
    10351036                           PP_FOREGROUNDCOLOR,
     
    11121113               &pData->dwd,
    11131114               WinDefWindowProc,
    1114                &G_scsToolbar);
     1115               0,
     1116               G_scsToolbar,
     1117               ARRAYITEMCOUNT(G_scsToolbar));
    11151118
    11161119    pData->hwndControlsOwner = ptbcd->hwndControlsOwner;
Note: See TracChangeset for help on using the changeset viewer.