views:

41

answers:

1

I was looking at the various windows styles flags, and I noticed that a few flags are defined as such:

#define WS_TILED            WS_OVERLAPPED
#define WS_ICONIC           WS_MINIMIZE
#define WS_SIZEBOX          WS_THICKFRAME
#define WS_TILEDWINDOW      WS_OVERLAPPEDWINDOW

What is the purpose of defining new flags that are literally identical to other flags?

+3  A: 

Its purpose is backwards compatibility. WS_TILED and WS_ICONIC probably date back to Windows version 1.

One of Microsoft's great burdens, once they put a #define or function in an SDK header file, they can never delete it again.

Hans Passant
A further question could be: "Why they had renamed then in next versions"?
Luca
@Luca: nothing got renamed, these styles just don't exist anymore. They are getting mapped to the closest existing equivalent.
Hans Passant