wx2.8.4 msw Stuck with MDI parent frame not drawing

Matt Connolly matt at soundevolution.com.au
Wed Jun 27 19:00:06 PDT 2007


I've tried *so* many times to figure out what's going on here, and  
I'm really confused.

I'm developing a little app for mac and windows using wxWidgets 2.8.4.

The mac side is working fine (albeit, the close/quit behaviour is a  
bit quirky, but I got it going).

Major problem on Windows: The parent frame is not drawing anything  
but the menu bar.

I'm following the "docvwmdi" example.

I've even substituted my source files into the sample project to  
ensure that there's nothing majorly wrong in my VisualStudioC++  
project settings. No difference.

I've stepped through both the example, and my app through the  
wxApp::OnInit() function, how the parent frame (which inherits from  
wxDocMDIParentFrame) is created. They are virtually identical. All of  
the variables being sent through the common constructors (like  
wxDocMDIParentFrame) are identical.

BUT, docvwmdi draws a blank gray background in the parent frame. Mine  
draws nothing. You see right through it to whatever was on the screen  
previously, then those pixels move around with the parent frame. If  
you open an about box (which is a frame in it's own right, not an MDI  
child of my app's DocMDIParentFrame) it appears, but when you close  
it, the pixels remain on the screen, the parent frame doesn't paint  
its background.

why?

This has been stumping me for days, and I'm sure it's a simple  
problem. Any help is greatly appreciated.

Thanks,
Matt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2174 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070628/a9cac61b/smime.bin


More information about the wx-users mailing list