I want to disable the form fade-in effect for a window. I think I found the right function
_
Private Sh
The documentation for DWMWA_TRANSITIONS_FORCEDISABLED reads:
Use with DwmSetWindowAttribute. Enables or forcibly disables DWM transitions. The pvAttribute parameter points to a value of TRUE to disable transitions or FALSE to enable transitions.
The macros TRUE and FALSE are declared as:
#define FALSE 0
#define TRUE 1
So you need to pass 1 for the attrValue parameter.
The boolean type that Windows uses natively is BOOL. This is declared like this:
typedef int BOOL;
And since sizeof(int) is 4, the attrSize you need to pass is 4.