cbClsExtra and cbWndExtra

Does this mean that bytes are initialized with zero value or system allocates zero (none) bytes by default?

initialization is always done on variables, so it means to sets the allocated extra memory to 0.

The most important question is how to use this extra bytes (provide examples please with winapi used) and how they are used most common?

The only way to do this is via the GetClassLongPtr and GetWindowLongPtr functions, these functions are simple enough to not need examples (call Get* to get the value, and Set* set set the value, passing either the class ATOM or window HWND).

Tags:

Winapi

Window