Okay, I found the example (I had assumed that it was a shipping example, and not a download).
The problem with that example is that the SetParent trick does not/cannot handle all the situations in which a panel can be configured, as you found out. It illustrates what can happen when the two libraries (the Windows SDK and the CVI UI Library) are mixed. In this case, the problem arises from the fact that CVI library does not "know" that your MDI panel is a child panel, and therefore it does not clip it to the scroll bars. And of course, the SDK also knows nothing about the scroll bars, since they are completely implemented by the CVI library.
There have been a few suggestions to implement min/max/close functionality in native CVI child panels, but
 never enough to make it a high priority. Still, it is in our suggestion database, and we are considering implementing itin the future. Still, we have no immediate, short term plans to do so. In the meanwhile, if you really need this functionality, you could try to implement it yourself. It would look a bit odd, but you could place a few picture buttons near the top-right corner of the panel, and then respond to those events by resizing or discarding the child panel. It would be a bit klunky, and it wouldn't look very Windows-like, but it should cover much of the MDI functionality.
- luis