才写了两篇博客,wordpress.com就被封了,真是太给力了
In a previous blog,i post how to change the black background of datawindow on column moving and mouse selection.
for many developers,they don't like fixed colors.is it possible to set it to system colors?luckily it could be done.
this time let's set this color to GetSysColor(COLOR_HIGHLIGHT) ,and bitwise AND 0xE1EF to avoid white.
now it can change with windows themes.
Figure:
to do this,open your pbdweXX.dll with a hex editor,
( the following maybe different for different dll file version, do remember backup first)
pb9(pbdwe90.dll, file version 9.0.1.7236)
search
C706000000006A0050FF1540106D118B0E8B561C5152FF151C106D115F5E5D5BC390909090909090909090909090
replace with
6A0050FF1540106D11EB166625E1EF89068B561C5052FF151C106D115F5E5D5BC36A0DFF15BC1B6D11E9DDFFFFFF
pb6.5(pbdwe60.dll,file version 6.5.0.444)
search
C706000000006A0050FF15F8EB66118B0E8B561C5152FF15D8EB66115F5E5D5BC390909090909090909090909090
replace with
6A0050FF15F8EB6611EB166625E1EF89068B561C5052FF15D8EB66115F5E5D5BC36A0DFF1528F66611E9DDFFFFFF
pb10.5(pbdwe105.dll,file version 10.5.1.6551)
search
C70600000000FF1560A083108B068B4E1C5051FF1538A083105E5B5F5D59C20800CCCCCCCCCCCCCCCCCCCCCCCCCC
replace with
FF1560A08310EB196625E1EF89068B4E1C5051FF1538A083105E5B5F5D59C208006A0DFF1554AD8310E9DAFFFFFF
pb11.5(pbdwe115.dll,file version 11.5.0.2506)
Note:there isn't enough space to patch these bytes,so only call GetSysColor(COLOR_HIGHLIGHT) ,no bitwise ,and remove a call to SetBkColor,don't know if there is any nasty effects.
search
C70600000000FF15702076118B068B4E1C5051FF154C207611
replace with
FF15702076116A0DFF15C82D76118906909090909090909090
P.S.
6A0D:0D is argument to GetSysColor,which is a system color index.
done.