CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005
    Posts
    111

    Semi transparaent brush

    Hi,

    I wants to create a semi transparent brush to paint over a dialog. Could you pls suggest some solutions in such a way that, I can change the transparency of brush with a variable.
    I am aware about SetLayaredWindow and Alphalending. But I want know whether with Brush I can do the same.

    Ajay

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Semi transparaent brush

    You should set the background mode of the target device context TRANSPARENT using SetBkMode and then draw on it using your brush. The brush itself can not be transparent.
    Regards,
    Ramkrishna Pawar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured