Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Problem on DataBase Update Pin
David Crow19-Jul-06 2:41
David Crow19-Jul-06 2:41 
AnswerRe: Problem on DataBase Update Pin
Tara1419-Jul-06 22:37
Tara1419-Jul-06 22:37 
Questionhow can I call a .exe in c++ Pin
mwolf12219-Jul-06 2:16
mwolf12219-Jul-06 2:16 
AnswerRe: how can I call a .exe in c++ Pin
Anilkumar K V19-Jul-06 2:18
Anilkumar K V19-Jul-06 2:18 
AnswerRe: how can I call a .exe in c++ Pin
Cedric Moonen19-Jul-06 2:19
Cedric Moonen19-Jul-06 2:19 
AnswerRe: how can I call a .exe in c++ Pin
Hamid_RT19-Jul-06 2:31
Hamid_RT19-Jul-06 2:31 
GeneralRe: how can I call a .exe in c++ Pin
mwolf12219-Jul-06 21:36
mwolf12219-Jul-06 21:36 
QuestionSetTimer, nIDEvent and timer identification Pin
Dimitris Vikeloudas19-Jul-06 1:41
Dimitris Vikeloudas19-Jul-06 1:41 
I want to use timers do some actions.

I read about
UINT SetTimer(HWND hWnd, UINT nIDEvent, UINT uElapse, TIMERPROC lpTimerFunc );

versus the

CWnd::SetTimer, UINT nIDEvent, UINT uElapse, TIMERPROC lpTimerFunc );

There is a nice document here explaining some facts. However, I still have some questions about who is handling the timers.

I want to create and handle the timers inside a CScrollView (by mapping and overwriting the inherited CWnd::OnTimer(UINT nIDEvent) and not via a TIMERPROC.

However, I am not sure which timer creation function to use and what value will be good for the nIDEvent on them.

i. How do I guarantee that the CScrollView which created the timer is the one that receives the WM_TIMER message (and subsequently process it). Is it possible that the
WM_TIMER expiration message ends up on another queue (I found that this is possible for mouse messages) or only the creating window can get it?

ii. Is the nIDEvent identifier a system unique one or a view unique one? How do I get a sufficiently unique nIDEvent value to make sure that I am processing the right timer?

iii. Is it possible that my CScrollView will receive time outs (i.e. WM_TIMER messages) by other views or even other threads or applications and under which conditions? If yes what should I do with those timers?

iv. Any idea why SetTimer may fail? Is this due to a system limit on running timers or due to a non unique nIDEvent? How can I know?


Dimitris
AnswerRe: SetTimer, nIDEvent and timer identification Pin
Kurt _B19-Jul-06 2:57
Kurt _B19-Jul-06 2:57 
GeneralRe: SetTimer, nIDEvent and timer identification Pin
Dimitris Vikeloudas19-Jul-06 3:17
Dimitris Vikeloudas19-Jul-06 3:17 
GeneralRe: SetTimer, nIDEvent and timer identification [modified] Pin
bosfan19-Jul-06 4:06
bosfan19-Jul-06 4:06 
QuestionMenus Disable when Switch from One View to Another View. [modified] Pin
Uday Janaswamy19-Jul-06 1:30
Uday Janaswamy19-Jul-06 1:30 
AnswerRe: Menus Disable when Switch from One View to Another View. Pin
Steve S19-Jul-06 1:49
Steve S19-Jul-06 1:49 
GeneralRe: Menus Disable when Switch from One View to Another View. Pin
Uday Janaswamy19-Jul-06 1:57
Uday Janaswamy19-Jul-06 1:57 
GeneralRe: Menus Disable when Switch from One View to Another View. Pin
Steve S19-Jul-06 6:34
Steve S19-Jul-06 6:34 
QuestionTAB CONTROL [modified] Pin
ashish dogra19-Jul-06 0:38
ashish dogra19-Jul-06 0:38 
AnswerRe: TAB CONTROL Pin
Hamid_RT19-Jul-06 2:27
Hamid_RT19-Jul-06 2:27 
Questiondouble to CString and back Pin
Desmo1619-Jul-06 0:29
Desmo1619-Jul-06 0:29 
AnswerRe: double to CString and back Pin
see me19-Jul-06 0:48
see me19-Jul-06 0:48 
AnswerRe: double to CString and back Pin
Roland Pibinger19-Jul-06 8:28
Roland Pibinger19-Jul-06 8:28 
AnswerRe: double to CString and back Pin
Naveen19-Jul-06 0:48
Naveen19-Jul-06 0:48 
AnswerRe: double to CString and back Pin
Ștefan-Mihai MOGA19-Jul-06 0:50
professionalȘtefan-Mihai MOGA19-Jul-06 0:50 
AnswerRe: double to CString and back Pin
Hamid_RT19-Jul-06 2:37
Hamid_RT19-Jul-06 2:37 
GeneralRe: double to CString and back Pin
Desmo1619-Jul-06 3:39
Desmo1619-Jul-06 3:39 
GeneralRe: double to CString and back [modified] Pin
toxcct19-Jul-06 3:40
toxcct19-Jul-06 3:40 

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.