Sous 7, est-il possible de désactivez aero juste pour une seule fenêtre ?
Si l'un de vous à une réponse, je suis preneur

Merci
Code : Tout sélectionner
Enumeration 1
#DWMWA_NCRENDERING_ENABLED
#DWMWA_NCRENDERING_POLICY
#DWMWA_TRANSITIONS_FORCEDISABLED
#DWMWA_ALLOW_NCPAINT
#DWMWA_CAPTION_BUTTON_BOUNDS
#DWMWA_NONCLIENT_RTL_LAYOUT
#DWMWA_FORCE_ICONIC_REPRESENTATION
#DWMWA_FLIP3D_POLICY
#DWMWA_EXTENDED_FRAME_BOUNDS
#DWMWA_HAS_ICONIC_BITMAP
#DWMWA_DISALLOW_PEEK
#DWMWA_EXCLUDED_FROM_PEEK
#DWMWA_LAST
EndEnumeration
Enumeration
#DWMNCRP_USEWINDOWSTYLE
#DWMNCRP_DISABLED
#DWMNCRP_ENABLED
#DWMNCRP_LAST
EndEnumeration
Procedure DisableAero(hWnd.i, State.i)
If OpenLibrary(0, "dwmapi.dll")
If State
State = #DWMNCRP_DISABLED
Else
State = #DWMNCRP_ENABLED
EndIf
CallFunction(0, "DwmSetWindowAttribute", hWnd, #DWMWA_NCRENDERING_POLICY, @State, SizeOf(Long))
CloseLibrary(0)
EndIf
EndProcedure
OpenWindow(0, 0, 0, 300, 300, "DWM", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget | #PB_Window_SizeGadget)
Aero = 1
DisableAero(WindowID(0), Aero)
ButtonGadget(0, 5, 5, 64, 24, "Aero")
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_Gadget
Select EventGadget()
Case 0
Aero = 1 - Aero
DisableAero(WindowID(0), Aero)
EndSelect
EndSelect
Until Event = #PB_Event_CloseWindow
Code : Tout sélectionner
#DWM_EC_DISABLECOMPOSITION=0
#DWM_EC_ENABLECOMPOSITION=1
uCompositionAction.l=#DWM_EC_ENABLECOMPOSITION
If OpenLibrary(0, "dwmapi.dll")
*func=GetFunction(0,"DwmEnableComposition")
If *func
CallFunctionFast(*func,uCompositionAction)
Delay(60000)
EndIf
CloseLibrary(0)
EndIf