GetWindowLongPtr  -->GetWindowLong
GWLP_WNDPROC  ----->GWL_WNDPROC
'SetLayeredWindowAttributes'  is w2k
LWA_ALPHA is w2k

解决方案 »

  1.   

    谢谢,但我是在win2000下编译的。

    GetWindowLongPtr  -->GetWindowLong
    GWLP_WNDPROC  ----->GWL_WNDPROC
    就剩下
    e:\transparent\Pellucid.cpp(83) : error C2065: 'SetLayeredWindowAttributes' : undeclared identifier
    e:\transparent\Pellucid.cpp(83) : error C2065: 'LWA_ALPHA' : undeclared identifier
    Error executing cl.exe.
    怎样解决?
      

  2.   

    这个问题需要最新的 platform sdk 来解决
    因为vc6 发布的时候还没有 2000
    所以 附带的库没有最新的api 函数
      

  3.   

    我也想是platform sdk的问题,但到微软那里我不知道改下载那个sdk好
      

  4.   

    LWA_ALPHA的数据查一下VC6.0的include直接写就行了。
    SetLayeredWindowAttributes也可以查一下include,自己将
    定义copy出来就应该可以了。
      

  5.   

    to verybigbug():
    不行啊,找不到,我已经安装了sp5的。有谁有办法?难道大家没写过界面透明的程序?
    help me plz!
      

  6.   

    BOOL WINAPI SetLayeredWindowAttributes(
      HWND hwnd,           // handle to the layered window
      COLORREF crKey,      // specifies the color key
      BYTE bAlpha,         // value for the blend function
      DWORD dwFlags        // action
    );LWA_ALPHA就用0,1等试一试.
      

  7.   

    to verybigbug():
    不行啊,还有什么治本的方法?
    该下载什么补丁!