This code declares a new variable with some initial values
at compile time, and that is fine, the compiler creates the variable from scratch.
RECT WindowSize = {0,0,300,300};
This code
WindowSize = { 0, 0, 300, 300 };
tries to assign multiple values to an existing variable,
at run time, which is not allowed. At run time you must assign each member of the class or structure individually.