Original Post
Ok, I've spent the past week now on this one problem. Some of you may even remember my various other posts related to an MDI problem. Well, all of them were about the same thing, it's just taken me this long to precisely pinpoint what the exact problem is. Here is what's happening: For an MDI you have the Frame window and the MDIClient window, correct? And the MDIClient window spawns Child windows. The bounds (x,y,cx,cy) of the MDIClient window are what clips the Child windows. So, if my MDIClient window has a width of 100, then any Child windows past that mark will be clipped. These are common things than any MDI programmer knows. Now, here's the kicker. Any time I resize or minimize/maximize the Frame window, it sets the MDIClient window's position to 0,0 (relative to the Frame window) and sets the MDIClient window's width and height to be equal to the width and height of the Frame window. This becomes a problem because I have a toolbar that is getting drawn over when the MDIClient window's position is changed. I've even downloaded Microsoft's example of an MDI and it suffers from the same problem. I am literally at the end of my rope here. I feel as though I've really made a dedicated effort in trying to not only solve this problem but to try and find source code that might also hold a key, but I've come up empty handed. I've been catching the WM_WINDOWPOSCHANGING message in an attempt to alter its contents and prevent the window from being resized and moved, but it still happens. Here is the code, I sincerely hope there is some master guru coder out there that can help me with this.
|