这个API怎么使用啊,我怎么用来用去,窗体都是全透明,请教它的用法!!

解决方案 »

  1.   

    http://ooeygui.typepad.com/ooey_gui/window_fun/
    http://www.csdn.com.cn/vzxsxzogoxxzocom/ozxood/dfdzdsdsdj/dsdx/oxdzdsdsdjdsdxdcdodcdrdsdcdsdododrdcdudz.html
      

  2.   

    SetLayeredWindowAttributes(
        hWnd,
        0,
        150,//这里修改透明度
        ULW_ALPHA);
      

  3.   

    //加入WS_EX_LAYERED属性
    SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE,
    GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000);
    HINSTANCE hInst = LoadLibrary("User32.DLL"); 
    if(hInst) 

    typedef BOOL (WINAPI *MYFUNC)(HWND,COLORREF,BYTE,DWORD); 
    MYFUNC fun = NULL;
    //取得SetLayeredWindowAttributes函数指针
    fun=(MYFUNC)GetProcAddress(hInst, "SetLayeredWindowAttributes");
    if(fun)fun(this->GetSafeHwnd(),0,128,2); 
    FreeLibrary(hInst); 
    }示例代码
    在OnInitDialog调用128是透明度
      

  4.   

    是UpdateLayeredWindow  不是SetLayeredWindowAttributes,SetLayeredWindowAttributes我知道怎么用