Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: class with dynamic array Pin
poiut15-Mar-05 10:36
poiut15-Mar-05 10:36 
GeneralRe: class with dynamic array Pin
Christian Graus15-Mar-05 10:46
protectorChristian Graus15-Mar-05 10:46 
Generalconvert a handle to a hwnd Pin
Tom Wright15-Mar-05 7:30
Tom Wright15-Mar-05 7:30 
GeneralRe: convert a handle to a hwnd Pin
PJ Arends15-Mar-05 10:40
professionalPJ Arends15-Mar-05 10:40 
GeneralRe: convert a handle to a hwnd Pin
Michael Dunn15-Mar-05 10:50
sitebuilderMichael Dunn15-Mar-05 10:50 
GeneralRe: convert a handle to a hwnd Pin
John R. Shaw15-Mar-05 11:05
John R. Shaw15-Mar-05 11:05 
GeneralRe: convert a handle to a hwnd Pin
Tom Wright15-Mar-05 12:57
Tom Wright15-Mar-05 12:57 
GeneralRe: convert a handle to a hwnd Pin
John R. Shaw16-Mar-05 12:15
John R. Shaw16-Mar-05 12:15 
Tom Wright wrote:
I'm not sure what you mean by this...can you explain some more?

When you are using a timer in a window, you use the nIDEvent parameter to set the event ID. The event ID is passed to the the TimerProc, so that you can determine which timer event caused the TimerProc to be called. For instants you may have an event that occurs every 1 second and anouther event that occurs every 5 seconds. By checking the event ID that is passed to the TimerProc, you can decide what your programm needs to do.

Now as for running a non-windowed thread that needs timer events, well you will probably have to insert code in that thread to check when the individule time periods have passed (manual time interval monitoring). Or you could roll your own timer thread and use one of the WaitFor... functions to check when a times up event to occur.

I know there is an article out there somewhere on rolling your own timer, but I have not looked at it in years, so I do not know where it is.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
General'Release' in C++.Net Pin
ddmcr15-Mar-05 7:11
ddmcr15-Mar-05 7:11 
GeneralRe: 'Release' in C++.Net Pin
Tom Wright15-Mar-05 7:31
Tom Wright15-Mar-05 7:31 
GeneralRe: 'Release' in C++.Net Pin
Michael Dunn15-Mar-05 10:48
sitebuilderMichael Dunn15-Mar-05 10:48 
GeneralRe: 'Release' in C++.Net Pin
Serge Krynine15-Mar-05 16:39
Serge Krynine15-Mar-05 16:39 
GeneralProblem regarding CString class Pin
ddmcr15-Mar-05 6:50
ddmcr15-Mar-05 6:50 
GeneralRe: Problem regarding CString class Pin
includeh1015-Mar-05 7:54
includeh1015-Mar-05 7:54 
GeneralRe: Problem regarding CString class Pin
ddmcr15-Mar-05 8:06
ddmcr15-Mar-05 8:06 
GeneralRe: Problem regarding CString class Pin
includeh1015-Mar-05 8:12
includeh1015-Mar-05 8:12 
GeneralRe: Problem regarding CString class Pin
ddmcr15-Mar-05 8:18
ddmcr15-Mar-05 8:18 
GeneralRe: Problem regarding CString class Pin
includeh1015-Mar-05 8:29
includeh1015-Mar-05 8:29 
GeneralRe: Problem regarding CString class Pin
ddmcr15-Mar-05 8:39
ddmcr15-Mar-05 8:39 
GeneralRe: Problem regarding CString class Pin
includeh1015-Mar-05 8:57
includeh1015-Mar-05 8:57 
GeneralRe: Problem regarding CString class Pin
Ravi Bhavnani15-Mar-05 9:16
professionalRavi Bhavnani15-Mar-05 9:16 
GeneralRe: Problem regarding CString class Pin
David Crow15-Mar-05 9:32
David Crow15-Mar-05 9:32 
GeneralRe: Problem regarding CString class Pin
John R. Shaw15-Mar-05 11:23
John R. Shaw15-Mar-05 11:23 
Generaltooltip doesn't show for hidden controls Pin
ThinkingPrometheus15-Mar-05 6:37
ThinkingPrometheus15-Mar-05 6:37 
GeneralRe: tooltip doesn't show for hidden controls Pin
includeh1015-Mar-05 8:03
includeh1015-Mar-05 8:03 

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.