All I want to do is update my dialog box!
-
I am trying to have a thread constantly update data in a dialog box, nothing is working! How do you constantly update data in a dialog box as other processes are running? DAVID
-
I am trying to have a thread constantly update data in a dialog box, nothing is working! How do you constantly update data in a dialog box as other processes are running? DAVID
How are you trying to update the dialog data from another thread. The suggested way is to post user defined messages with the parameter as new data to the dialog window, and write the message handler to update the dialog data itself.
There is no spoon. suhredayan -
How are you trying to update the dialog data from another thread. The suggested way is to post user defined messages with the parameter as new data to the dialog window, and write the message handler to update the dialog data itself.
There is no spoon. suhredayan -
I am attempting to post GPS coordinates from the GPS to the dialog box real time. A thread reads the GPS coordinates from the GPS unit and updates the current values in memory. Somehow I need to get those values to appear realtime in a dialog box!!!:mad:
maybe not real time but somewhere close to that ..... u can use timer function triggerd very millisecond!!!!! well like said before u can define a variable like "BOOL m_update"(or something like that) and whenever this thread of ur is getting updating the data u can set the "m_update"..... since the timer is set every millisecond u can give a code that check if m_update is set or not and based on that update the datavariables to the dialog box.....and then use the command "UpdateDatA(FALSE)" to update that to the screen..... ofcourse the best way again would be to use the PostMessage option.....to update the dialog rather than using the timer function..... if u can make ur question a little more clear.....maybe i can hlp...... hope this helpz u out!!!!! happy programming..... cheerz :-D
-
I am trying to have a thread constantly update data in a dialog box, nothing is working! How do you constantly update data in a dialog box as other processes are running? DAVID
maybe not real time but somewhere close to that ..... u can use timer function triggerd very millisecond!!!!! well like said before u can define a variable like "BOOL m_update"(or something like that) and whenever this thread of ur is getting updating the data u can set the "m_update"..... since the timer is set every millisecond u can give a code that check if m_update is set or not and based on that update the datavariables to the dialog box.....and then use the command "UpdateDatA(FALSE)" to update the dialog contents to the screen..... ofcourse the best way again would be to use the PostMessage option.....to update the dialog rather than using the timer function..... if u can make ur question a little more clear.....maybe i can hlp...... hope this helpz u out!!!!! happy programming..... cheerz :-D