SetWindowLong(m_hWnd,GWL_EXSTYLE,GetWindowLong(m_hWnd,GWL_EXSTYLE)^WS_EX_LAYERED);
HINSTANCE hInst = GetModuleHandle(_T("User32.DLL"));
if(hInst)
{
typedef BOOL (WINAPI *TestFun)(HWND,COLORREF,BYTE,DWORD);
//取得SetLayeredWindowAttributes函数指针
TestFun mytest = (TestFun)GetProcAddress(hInst, "SetLayeredWindowAttributes");

if(mytest)
mytest(m_hWnd,0,200,LWA_ALPHA);
}

相关文章:

  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-02-28
  • 2021-09-29
  • 2022-01-11
  • 2022-12-23
  • 2021-04-09
猜你喜欢
  • 2022-12-23
  • 2021-07-27
  • 2021-08-29
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
相关资源
相似解决方案