opacity ... in VC++

 Hi experts,

     I am adding a picture with transparent background to a canvas (in VC++) using the following lines :

     SelectObject(bufdc,ghost) ;
     BitBlt(mdc, x, y, 60, 120, bufdc, 0, 120, SRCAND) ;
     BitBlt(mdc, x, y, 60, 120, bufdc, 0, 0, SRCPAINT) ;
     Does anyone know how to change the opacity of the object (the ghost) itself ?

  many thanks !!!

Who is Participating?
cyberizenConnect With a Mentor Commented:
Look for this method under MSDN SetLayeredWindowAttributes. Hope it helps
All Courses

From novice to tech pro — start learning today.