//=======================================
 SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE,
  GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000);
 HINSTANCE hInst = LoadLibrary("User32.DLL"); //显式加载DLL
 if(hInst)
 {           
  typedef BOOL (WINAPI *MYFUNC)(HWND,COLORREF,BYTE,DWORD);         
  MYFUNC fun = NULL;    
  fun=(MYFUNC)GetProcAddress(hInst, "SetLayeredWindowAttributes");//取得SetLayeredWindowAttributes函数指针
  if(fun)fun(this->GetSafeHwnd(),0,100,2);    
  FreeLibrary(hInst);
 }
 //========================================= 

相关文章:

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