prmsaic
September 29th, 2004, 01:04 PM
I'm trying to fix a refresh problem in an application that creates a VB form with a large circle with a sweep hand (cursor looks and moves like a clock hand. It's trying to simulate the look of a radar sweep). The VB app then spawns a C++ app which grabs the form handle, calculates and then draws airplane info to the same form. When the sweep arm is moved, the rectangle defining it wipes out a large area drawn by C++, and the refresh is very slow. Is there any way to fix the contention between C++ and VB writing to the same form to get rid of the refresh problem?
It is problematic at this point to put the sweep hand in the C++ app, so hopefully there is another way. Can I create a separate frameless window in C++ and overlay it on top of the VB form? How would I do something like that?
The C++ code is using GDI. Would GDI+ buy me anything with window shape, refresh and/or transparency? I think DirectX would be huge overkill, but maybe there is some advantage in this area?
It is problematic at this point to put the sweep hand in the C++ app, so hopefully there is another way. Can I create a separate frameless window in C++ and overlay it on top of the VB form? How would I do something like that?
The C++ code is using GDI. Would GDI+ buy me anything with window shape, refresh and/or transparency? I think DirectX would be huge overkill, but maybe there is some advantage in this area?