Search found 60 matches

by Jive Dadson
Sat Aug 19, 2017 2:52 am
Forum: Platform Related Issues
Topic: Windows - bad icon behavior
Replies: 16
Views: 2672

Re: Windows - bad icon behavior

wxWidgets 3.3.0
Visual C++ 2017
by Jive Dadson
Sat Aug 19, 2017 2:51 am
Forum: Platform Related Issues
Topic: Windows - bad icon behavior
Replies: 16
Views: 2672

Windows - bad icon behavior

Anyone ever see this? You have a wxWidgets program foo.exe. In Windows Explorer, you click foo.exe. The program opens and the icon appears in the taskbar. Now pin it to the taskbar, and the proper icon turns into the little white rectangle with the blue rectangle in it. Un-pin it, and the proper ico...
by Jive Dadson
Sat Aug 19, 2017 2:45 am
Forum: Platform Related Issues
Topic: wxCreateToolBar 'TB_GETITEMRECT' failed
Replies: 6
Views: 1298

Re: wxCreateToolBar 'TB_GETITEMRECT' failed

Forgot to say, I am using 3.3.0, but it does the same thing with 3.0.1

Running Windows 7 64 bit
by Jive Dadson
Sat Aug 19, 2017 2:33 am
Forum: Platform Related Issues
Topic: wxCreateToolBar 'TB_GETITEMRECT' failed
Replies: 6
Views: 1298

wxCreateToolBar 'TB_GETITEMRECT' failed

I am getting the following error at runtime when I call wxCreateToolBar(wxTB_HORIZONTAL | wxBORDER_NONE | wxTB_FLAT, 100) ; ..\..\src\msw\toolbar.cpp(290): 'TB_GETITEMRECT' failed with error 0x00000006 (the handle is invalid.). The call is very early in the startup code, before anything could go wro...
by Jive Dadson
Sun Oct 21, 2012 9:23 pm
Forum: C++ Development
Topic: Options dialog to recycle
Replies: 1
Views: 781

Options dialog to recycle

I need a simple options-dialog. Nothing fancy. I could get by with nothing other than integer values. Ideally, each option would have a restore-to-default button. And of course I will need to make the option-values persistent. Does anyone know where I could find source code for a dialog I can steal,...
by Jive Dadson
Mon Oct 15, 2012 11:12 pm
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 5000

Re: wxPaintDC does not always paint the damaged area

I subscribed to the mailing list and sent a message. It has not showed up. Maybe it takes a while. We will see what happens.
by Jive Dadson
Mon Oct 15, 2012 9:22 pm
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 5000

Re: wxPaintDC does not always paint the damaged area

Thanks. He can probably point me in the right direction.
by Jive Dadson
Mon Oct 15, 2012 12:51 pm
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 5000

Re: wxPaintDC does not always paint the damaged area

Another thing... I think it probably only does it for certain kinds of programs. I built the "life" demo, and it's fine. I started my project by copying stuff from the "image" demo, and it behaves badly. Both programs use OnPaint to draw to a DC in a scrolled window.
by Jive Dadson
Mon Oct 15, 2012 12:39 pm
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 5000

Re: wxPaintDC does not always paint the damaged area

I explained already why I am not interested in wxFULL_REPAINT_ON_RESIZE. I have implemented a workaround wherein the OnPaint handler inspects the update regions, and when it detects a faulty one, it does a full repaint then. I am still interested in getting to the bottom of this. Do you know who the...
by Jive Dadson
Mon Oct 15, 2012 11:24 am
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 5000

Re: wxPaintDC does not always paint the damaged area

I have yet to see any non wxWidgets app exhibit the problem - only my program and the ones from the "samples" directory in the distribution. I may be exposing my ignernce to ask this, but how could a graphics card or driver cause the data from GetUpdateRegion to be faulty?
by Jive Dadson
Sun Oct 14, 2012 11:07 pm
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 5000

Re: wxPaintDC does not always paint the damaged area

I only have this one machine. I am retired. Working on a get-rich scheme. :-) The image program is just the one that comes with the distribution. I have not found a combination that works on my machine. Compile it with any VC++ 2008 or later. Link it with a wx library compiled for the same CRT. Try ...
by Jive Dadson
Sun Oct 14, 2012 10:31 pm
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 5000

Re: wxPaintDC does not always paint the damaged area

It does the same thing with CRT's going back to VC++2008. Static link or dll, no difference. I am pretty sure I got the VC++ 2008 version in an official, pre-built distribution.
by Jive Dadson
Sun Oct 14, 2012 10:17 pm
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 5000

Re: wxPaintDC does not always paint the damaged area

This just in. The image program does it too. Very much so. So the "specific circumstances" to reproduce the problem is to run the image program on my machine. :-) I think I built the binaries from source. Is there a pre-built version for VC++ 2012? One thing I can try is running the image program co...
by Jive Dadson
Sun Oct 14, 2012 10:00 pm
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 5000

Re: wxPaintDC does not always paint the damaged area

I will see if I can reproduce it in a smaller program. No promises when though. Actually, the program that paints stripey is not all that big. I have not tried repainting fully with the wxPaintDC. I suspect it would flicker - if not on my machine, on a customer's. And how would I know? I will try th...
by Jive Dadson
Sun Oct 14, 2012 9:42 pm
Forum: C++ Development
Topic: wxPaintDC does not always paint the damaged area
Replies: 17
Views: 5000

Re: wxPaintDC does not always paint the damaged area

So now the question... What to do about it? Submit a bug report, for sure. What is a good workaround? Here's something that's puzzling me. Windows has a device context called CPaintDC. I expected that wxWidgets would implement wxPaintDC using that. But the only occurrence of CPaintDC that I find in ...