The video shows the sample executable restores its size and position. It achieves that by storing and retrieving the WindowPlacement structure to the registry.

Video Steps:
1) Runs the executable three time
2) On each run, the window is placed in different position, toolbar is docked in different places
3) When the sample is loaded the positions are restored.

Article is coming soon.