Click here to Skip to main content
16,016,140 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Spying Serial Port Pin
Jon Hulatt17-Feb-03 21:50
Jon Hulatt17-Feb-03 21:50 
GeneralRe: Spying Serial Port Pin
Scott H. Settlemier20-Feb-03 7:09
Scott H. Settlemier20-Feb-03 7:09 
GeneralDelete a row from MSHFlexGrid Control Pin
Toni7817-Feb-03 15:37
Toni7817-Feb-03 15:37 
GeneralIgnore this message Pin
Toni7817-Feb-03 17:21
Toni7817-Feb-03 17:21 
Generaldynamic arrays of pointers Pin
brandon187917-Feb-03 14:58
brandon187917-Feb-03 14:58 
GeneralRe: dynamic arrays of pointers Pin
Nitron17-Feb-03 15:06
Nitron17-Feb-03 15:06 
GeneralRe: dynamic arrays of pointers Pin
Michael Dunn17-Feb-03 19:25
sitebuilderMichael Dunn17-Feb-03 19:25 
QuestionPostMessage or SendMessage?? Pin
Nitron17-Feb-03 14:26
Nitron17-Feb-03 14:26 
Ok, I am developing a quasi-realtime data display with some dials and sliders on it. The controls are in their own modeless dialog so users can show or hide them as they please. I am aquiring the data from a seperate datasource from within a seperate thread, and will pass the data structure to the UI via message pump. I also wrote a "window manager" class to handle which controls are shown and which ones aren't. I plan on sending a message to the "window manager" with the data structure, and then have the window manager send messages to the individual controls.

So my question is:

Do I:

A. Use SendMessage() from the DAQ thread and wait for the updates to return before acquiring the next sample, and use SendMessage() from the window manager to all the controls.

B. Use SendMessage() from DAQ and PostMessage() to the controls from the window manager, letting the control windows handle their own message que.

C. Use PostMessage() from the DAQ to the manager, and SendMessage() to the controls.

D. Use PostMessage() all around, passing the structures created on the heap and deleting them within the message handlers.

E. Some other method

Aside:
The data aquisition will more than likely take longer than the window updates, so I probably won't be flooding the message que. I plan on running between 10 Hz - 30 Hz.




- Nitron


"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
AnswerRe: PostMessage or SendMessage?? Pin
Chintan17-Feb-03 18:47
Chintan17-Feb-03 18:47 
GeneralRe: PostMessage or SendMessage?? Pin
Pater17-Feb-03 22:24
Pater17-Feb-03 22:24 
GeneralRe: PostMessage or SendMessage?? Pin
Nitron18-Feb-03 3:15
Nitron18-Feb-03 3:15 
GeneralRe: PostMessage or SendMessage?? Pin
Nitron18-Feb-03 3:14
Nitron18-Feb-03 3:14 
QuestionBug in CRichEdit? Pin
Miguel Lopes17-Feb-03 13:20
Miguel Lopes17-Feb-03 13:20 
Questionhow to get the url under a link Pin
goldcreator17-Feb-03 12:47
goldcreator17-Feb-03 12:47 
AnswerRe: how to get the url under a link Pin
Neville Franks17-Feb-03 17:29
Neville Franks17-Feb-03 17:29 
GeneralRe: how to get the url under a link Pin
goldcreator18-Feb-03 14:18
goldcreator18-Feb-03 14:18 
GeneralWM_PRINTCLIENT Example Pin
David Ramsey17-Feb-03 9:59
David Ramsey17-Feb-03 9:59 
GeneralWhere is the Project->Settings->Link of 6.0 in Visual Studio.NET Pin
IrishSonic17-Feb-03 9:56
IrishSonic17-Feb-03 9:56 
GeneralRe: Where is the Project->Settings->Link of 6.0 in Visual Studio.NET Pin
David Ramsey17-Feb-03 10:02
David Ramsey17-Feb-03 10:02 
GeneralRe: Where is the Project->Settings->Link of 6.0 in Visual Studio.NET Pin
Navin17-Feb-03 10:24
Navin17-Feb-03 10:24 
GeneralRe: Where is the Project->Settings->Link of 6.0 in Visual Studio.NET Pin
rohit.dhamija17-Feb-03 21:58
rohit.dhamija17-Feb-03 21:58 
GeneralRe: Where is the Project->Settings->Link of 6.0 in Visual Studio.NET Pin
rohit.dhamija17-Feb-03 21:58
rohit.dhamija17-Feb-03 21:58 
QuestionHow can I kept a CFormView a fixed size? Pin
DanYELL17-Feb-03 9:29
DanYELL17-Feb-03 9:29 
AnswerRe: How can I kept a CFormView a fixed size? Pin
OBRon17-Feb-03 9:59
OBRon17-Feb-03 9:59 
AnswerRe: How can I kept a CFormView a fixed size? Pin
Nish Nishant17-Feb-03 10:18
sitebuilderNish Nishant17-Feb-03 10:18 

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.