How to use UpdateLayeredWindow with UI Controls like buttons etc?:)

  1. Marc Gregoire said,

  2. In my example I have this device context called hDC which will be used in the call to UpdateLayeredWindow. This is just a 32bit device context, so RGB and A channels. If you want to add PNG based buttons, load the PNGs (maybe using CImage class) and then render those PNGs at the right position in the hDC. Store the coordinates of your PNG buttons somewhere so you can use the coordinates in your WM_MOUSEMOVE and mouse button messages. Once everything is rendered to hDC, call UpdateLayeredWindow. I think this should give you what you want.
  1. Prabhat said,

  2. Hi ,
    I want to use Webbrowser control with transparent dialog. dilaog box should transparent but webbrowser control part should not transparent.
    Thanks,
    prabaht singh.
  3. Marc Gregoire said,

    Wrote on March 17, 2010 @ 3:53 pm

    Try the above procedure. Create your bitmap and make sure the part where the webbrowser control should appear is not transparent;

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值