Search found 8 matches

by mpthompson
Thu Sep 23, 2010 6:26 am
Forum: C++ Development
Topic: Painting top-level window into wxMemoryDC
Replies: 7
Views: 1564

OK, thanks for confirming this. I suspected that was the case, but thought I would ask in case I was missing something. I've seen some hints that a printer DC can be used to render a window hierarchy in the way that I desire, but it would be highly platform specific and somewhat complex to achieve. ...
by mpthompson
Wed Sep 22, 2010 6:07 pm
Forum: C++ Development
Topic: Painting top-level window into wxMemoryDC
Replies: 7
Views: 1564

Painting top-level window into wxMemoryDC

Is it possible to have a top level window and all child windows render themselves into a wxMemoryDC? I've seen this question asked in the archives, but I didn't find a definitive answer. I would like to have my wxWidgets-based application (MSW for now) go through a normal paint update cycle, but whe...
by mpthompson
Mon Dec 14, 2009 8:29 am
Forum: Platform Related Issues
Topic: Strange redraw problem under Windows 7
Replies: 7
Views: 6739

Turns out the function call to SetVirtualSize() was a Red Herring, but I did find a solution to my problem. There is undocumented Windows function called DwmFlush() that seems to allow a GDI based application to force the Desktop Windows Manager (DWM) to synchronize it's buffers for the application ...
by mpthompson
Sun Dec 13, 2009 8:25 pm
Forum: Platform Related Issues
Topic: Strange redraw problem under Windows 7
Replies: 7
Views: 6739

Using Google I'm learning a lot more about Aero and the Desktop Window Manager (DWM) utilized by Vista/Windows 7. Apparently they utilize some form of double buffering implemented by the GPU that is transparent to the underlying applications for the fancy visual effects of the desktop. Under normal ...
by mpthompson
Sun Dec 13, 2009 2:28 am
Forum: Platform Related Issues
Topic: Strange redraw problem under Windows 7
Replies: 7
Views: 6739

Just a quick follow up. On a hunch I set my Windows 7 system to use the "Windows Classic" theme and the redraw problem went away. This would imply that the issue is related the Windows 7 Aero theme being activated. I wonder if Aero implements some sort of buffering interfering with the windows updat...
by mpthompson
Sun Dec 13, 2009 2:20 am
Forum: Platform Related Issues
Topic: Strange redraw problem under Windows 7
Replies: 7
Views: 6739

Strange redraw problem under Windows 7

I'm a bit stumped with a redraw problem under Windows 7 and I'm hoping to get some suggestions on where I might look further to resolve the issue. I have been creating an interactive drawing application under Windows XP with wxWidgets 2.8.10 and everything seemed to be working fine for quite a while...
by mpthompson
Fri Feb 13, 2009 6:14 pm
Forum: C++ Development
Topic: Cross-platform fonts
Replies: 3
Views: 843

OK, thanks for the confirmation regarding the rendering of text on the DC. I'll try to get by with the "trial and error" approach of choosing the fonts that best match each other on a cross-platform basis. If that doesn't work I guess I'll have to come up with a more complex approach as described ab...
by mpthompson
Fri Feb 13, 2009 3:15 am
Forum: C++ Development
Topic: Cross-platform fonts
Replies: 3
Views: 843

Cross-platform fonts

I'm relatively new to wxWidgets so I hope this question isn't silly. I'm working on a cross-platform application where I would like drawings created using wxDC methods to be bit identical across Windows, Mac and Linux platforms. My issue concerns fonts selected into the DC. I'm assuming that the fol...