不过不通过更换图片可以自己作Alpha运算自己画

解决方案 »

  1.   

    BOOL BitBlt(
      HDC hdcDest, // handle to destination DC
      int nXDest,  // x-coord of destination upper-left corner
      int nYDest,  // y-coord of destination upper-left corner
      int nWidth,  // width of destination rectangle
      int nHeight, // height of destination rectangle
      HDC hdcSrc,  // handle to source DC
      int nXSrc,   // x-coordinate of source upper-left corner
      int nYSrc,   // y-coordinate of source upper-left corner
      DWORD dwRop  // raster operation code
    );
    函数中的 dwRop=PATPAINT(这个参数也许不对你可以在MSDN中查一下)这样源位图就会和目的位图执行或操做就不会盖掉源位图了!
      

  2.   

    BOOL SetLayeredWindowAttributes(
      HWND hwnd,           // handle to the layered window
      COLORREF crKey,      // specifies the color key
      BYTE bAlpha,         // value for the blend function
      DWORD dwFlags        // action
    );
      

  3.   

    我有个这样的现成的BUTTON类,其实就是加了鼠标事件控制,然后用ALPAHBLEN再上面蒙了一层.