Click here to Skip to main content
15,916,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The WM_SET_TEXT message Pin
Steve S27-Sep-02 0:30
Steve S27-Sep-02 0:30 
GeneralRe: The WM_SET_TEXT message Pin
Shog926-Sep-02 11:56
sitebuilderShog926-Sep-02 11:56 
GeneralRe: The WM_SET_TEXT message Pin
Fiffismurf27-Sep-02 7:13
Fiffismurf27-Sep-02 7:13 
QuestionCannot change transfer var? Pin
jimNLX26-Sep-02 11:07
jimNLX26-Sep-02 11:07 
AnswerRe: Cannot change transfer var? Pin
Gary R. Wheeler29-Sep-02 5:53
Gary R. Wheeler29-Sep-02 5:53 
QuestionIs there a limit on amt of timers in an app? Pin
JohnnyG26-Sep-02 11:06
JohnnyG26-Sep-02 11:06 
AnswerRe: Is there a limit on amt of timers in an app? Pin
RedZenBird26-Sep-02 11:18
RedZenBird26-Sep-02 11:18 
GeneralRe: Is there a limit on amt of timers in an app? Pin
JohnnyG27-Sep-02 3:17
JohnnyG27-Sep-02 3:17 
Ok, here's the problem. I'm trying to make a simple radar type display, called a PPI. This one is different from most we've done previously, in that when you draw a target on the PPI, I do not want to see where the target's location was on the previous (radar) scan. Thus, I need to erase the target's location for the last scan before I draw the target's new location for the current scan. Also, keep in mind that some targets do not move but may disappear after several scans.

Now, in the past we just drew a target for say scan number n and then at scan number n+20, we would have a 20 target history onscreen since we did not erase the previous locations.

Now, I could probably do it with one timer but I was trying to make this simple. There are probably several approaches to doing this but tracking the targets, i.e. keeping track of their position from scan to scan and then correlating those targets from the current scan to the previous scan, is not simple. So, I thought if I made my target symbols intelligient with each one having its own timer, then it would erase itself (or make itself not visible) before being redrawn in the current scan being processed. The timer would go off just about the time when the next scan's data was being drawn in about the same location. Thus, the user would see targets from a previous scan for a select area disappear and then the updated (new) target being drawn within say .2 seconds.

As I said there are several ways of doing this, one approach would be to redraw all of the targets (XOR them so they erase) from the previous scan and then draw the new targets from the current scan but the problem with this is that radars take 4.6 seconds per scan (some are 10 and 12 second scans). Thus, I would have a blank display until the updated positions for these targets are drawn. Unacceptable.

If I want to make it smooth it requires some form of tracking. But, I want something simple. I hope this makes sense. The reason I thought the timers might work is because Direct3D or DirectDraw has something built into it that does something similar. e.g. U have a car or robot and you want it to move in some direction at some rate of speed.


GeneralRe: Is there a limit on amt of timers in an app? Pin
RedZenBird27-Sep-02 6:52
RedZenBird27-Sep-02 6:52 
GeneralRe: Is there a limit on amt of timers in an app? Pin
JohnnyG27-Sep-02 9:11
JohnnyG27-Sep-02 9:11 
AnswerRe: Is there a limit on amt of timers in an app? Pin
Shog926-Sep-02 12:12
sitebuilderShog926-Sep-02 12:12 
GeneralDialog boxes and Notification Msg Prob. Pin
Phrozen Banana26-Sep-02 10:53
sussPhrozen Banana26-Sep-02 10:53 
GeneralParsing cmd line arguments in Win32 appl Pin
rsasalm_26-Sep-02 10:41
rsasalm_26-Sep-02 10:41 
GeneralRe: Parsing cmd line arguments in Win32 appl Pin
Jon Hulatt26-Sep-02 22:57
Jon Hulatt26-Sep-02 22:57 
General#define and data types Pin
James A Beggs26-Sep-02 9:33
James A Beggs26-Sep-02 9:33 
GeneralRe: #define and data types Pin
Pavel Klocek26-Sep-02 9:38
Pavel Klocek26-Sep-02 9:38 
GeneralRe: #define and data types Pin
Maciej Pirog26-Sep-02 9:47
Maciej Pirog26-Sep-02 9:47 
GeneralRe: #define and data types Pin
RedZenBird26-Sep-02 10:04
RedZenBird26-Sep-02 10:04 
GeneralRe: #define and data types Pin
James A Beggs26-Sep-02 10:12
James A Beggs26-Sep-02 10:12 
GeneralRe: #define and data types Pin
RedZenBird26-Sep-02 11:25
RedZenBird26-Sep-02 11:25 
QuestionWhat's a LARGE_INTEGER, and where is it defined? Pin
Anonymous26-Sep-02 8:57
Anonymous26-Sep-02 8:57 
AnswerRe: What's a LARGE_INTEGER, and where is it defined? Pin
lucy26-Sep-02 9:19
lucy26-Sep-02 9:19 
AnswerRe: What's a LARGE_INTEGER, and where is it defined? Pin
lucy26-Sep-02 9:21
lucy26-Sep-02 9:21 
AnswerRe: What's a LARGE_INTEGER, and where is it defined? Pin
Anders Molin26-Sep-02 9:18
professionalAnders Molin26-Sep-02 9:18 
AnswerThanks all, included winnt.h and it worked :) Pin
Anonymous26-Sep-02 9:51
Anonymous26-Sep-02 9:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.