Changeset 877 for trunk/dll/presparm.c


Ignore:
Timestamp:
Nov 24, 2007, 8:50:52 PM (18 years ago)
Author:
Gregg Young
Message:

Cleaned up actual fix for drop down menu fonts and colors not matching.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/presparm.c

    r872 r877  
    325325
    326326  ULONG AttrFound, AttrValue[64], cbRetLen, x = 0,
    327     AttrName[] = { PP_FONTNAMESIZE, PP_BACKGROUNDCOLOR,
    328     PP_FOREGROUNDCOLOR, PP_HILITEBACKGROUNDCOLOR,
    329     PP_HILITEFOREGROUNDCOLOR, PP_BORDERCOLOR,
    330     0
    331   };
    332 
    333   while (AttrName[x]) {
     327    AttrName[] = { PP_FONTNAMESIZE, PP_FOREGROUNDCOLOR,
     328    PP_BACKGROUNDCOLOR, PP_HILITEBACKGROUNDCOLOR,
     329    PP_HILITEFOREGROUNDCOLOR, PP_BORDERCOLOR};
     330
     331  for (x=0; x < 6; x++) {
    334332    cbRetLen = WinQueryPresParam(source,
    335333                                 AttrName[x],
    336334                                 0,
    337335                                 &AttrFound,
    338                                  (ULONG) sizeof(AttrValue), &AttrValue, 0);
     336                                 sizeof(AttrValue),
     337                                 &AttrValue, 0);
     338    //printf("%s %x\n", AttrValue, source); fflush(stdout);
     339    //printf("%x\n", AttrValue); fflush(stdout);
    339340    if (cbRetLen)
    340341      WinSetPresParam(target, AttrName[x], cbRetLen, (PVOID) AttrValue);
    341     x++;
    342   }
     342  } //for
    343343}
    344344
Note: See TracChangeset for help on using the changeset viewer.