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

来源:互联网 发布:linux下创建多级目录 编辑:程序博客网 时间:2024/05/19 00:07
  1. Marc Gregoire said,

  2. Wrote on June 17, 2009 @ 12:21 pm
  3. 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. Wrote on March 17, 2010 @ 11:43 am
  3. Hi ,
    I want to use Webbrowser control with transparent dialog. dilaog box should transparent but webbrowser control part should not transparent.
    Thanks,
    prabaht singh.
  4. 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;