Changeset 243 for trunk/src/helpers/cctl_toolbar.c
- Timestamp:
- Jan 29, 2003, 7:41:39 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/cctl_toolbar.c
r242 r243 186 186 LONG lLeft, 187 187 lRight, 188 lColorMiddle = pbd->dwd.lcolBackground;188 lColorMiddle = ctlQueryColor(&pbd->dwd, CTLCOL_BGND); // pbd->dwd.lcolBackground; 189 189 RECTL rclWin, 190 190 rclTemp; … … 344 344 ) 345 345 { 346 GpiSetColor(hps, pbd->dwd.lcolForeground); 346 GpiSetColor(hps, 347 ctlQueryColor(&pbd->dwd, CTLCOL_FGND)); // pbd->dwd.lcolForeground); 347 348 rclTemp.yTop -= 2 * TBB_TEXTSPACING + lOfs; 348 349 rclTemp.xRight += 2 * lOfs; // twice the offset because we center horizontally … … 354 355 } 355 356 356 static const SYSCOLORSET G_scsToolbarButton =357 /* static const SYSCOLORSET G_scsToolbarButton = 357 358 { 358 359 TRUE, // inherit presparams … … 360 361 SYSCLR_BUTTONMIDDLE, 361 362 SYSCLR_MENUTEXT 363 }; 364 */ 365 366 static const CCTLCOLOR G_scsToolbarButton[] = 367 { 368 TRUE, PP_BACKGROUNDCOLOR, SYSCLR_BUTTONMIDDLE, 369 TRUE, PP_FOREGROUNDCOLOR, SYSCLR_MENUTEXT, 362 370 }; 363 371 … … 445 453 &pData->bd.dwd, 446 454 WinDefWindowProc, 447 &G_scsToolbarButton); 455 0, 456 G_scsToolbarButton, 457 ARRAYITEMCOUNT(G_scsToolbarButton)); 448 458 449 459 if ( (pcszText) … … 851 861 ********************************************************************/ 852 862 853 static const SYSCOLORSET G_scsToolbar = 854 { 855 TRUE, // inherit presparams 856 SYSCLR_MENU, 857 SYSCLR_MENUTEXT 863 static const CCTLCOLOR G_scsToolbar[] = 864 { 865 TRUE, PP_BACKGROUNDCOLOR, SYSCLR_MENU, 866 TRUE, PP_FOREGROUNDCOLOR, SYSCLR_MENUTEXT 858 867 }; 859 868 … … 1017 1026 (PVOID)pcszFont); 1018 1027 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); 1024 1029 winhStorePresParam(&ppp, 1025 1030 PP_BACKGROUNDCOLOR, … … 1027 1032 &lColor); 1028 1033 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); 1034 1035 winhStorePresParam(&ppp, 1035 1036 PP_FOREGROUNDCOLOR, … … 1112 1113 &pData->dwd, 1113 1114 WinDefWindowProc, 1114 &G_scsToolbar); 1115 0, 1116 G_scsToolbar, 1117 ARRAYITEMCOUNT(G_scsToolbar)); 1115 1118 1116 1119 pData->hwndControlsOwner = ptbcd->hwndControlsOwner;
Note:
See TracChangeset
for help on using the changeset viewer.