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);    
   }

相关文章:

  • 2021-11-06
  • 2021-06-06
  • 2022-01-11
  • 2022-12-23
  • 2021-10-21
  • 2021-06-09
  • 2022-12-23
  • 2021-07-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案