I'm not going to belabor my blog with yet another code explanation. I've converted the dynamic layout example (found here) from C# to C++. It isn't especially interesting, but it is good groundwork for later examples and projects.
Get the code! You can download this dynamic layout example here. As usual, both old and new syntax versions are included. And, as usual, if the old syntax version doesn't seem to compile, please let me know. The comments section on the sample download page has a note about avoiding a compiler warning.