Change the BLACK background on datawindow on column moving and mouse selection to system color

才写了两篇博客,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:changed background color under windows themes

 

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.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值