Click here to Skip to main content
16,011,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: vc++ interrupt handling Pin
Hamid_RT31-Aug-07 1:48
Hamid_RT31-Aug-07 1:48 
Questionhow to track that no event has occured on a win32 SDI applications window Pin
Dhiraj kumar Saini30-Aug-07 23:51
Dhiraj kumar Saini30-Aug-07 23:51 
AnswerRe: how to track that no event has occured on a win32 SDI applications window Pin
chandu00431-Aug-07 0:02
chandu00431-Aug-07 0:02 
GeneralRe: how to track that no event has occured on a win32 SDI applications window Pin
Dhiraj kumar Saini31-Aug-07 0:18
Dhiraj kumar Saini31-Aug-07 0:18 
GeneralRe: how to track that no event has occured on a win32 SDI applications window Pin
chandu00431-Aug-07 0:26
chandu00431-Aug-07 0:26 
AnswerRe: how to track that no event has occured on a win32 SDI applications window Pin
Nishad S31-Aug-07 0:56
Nishad S31-Aug-07 0:56 
GeneralRe: how to track that no event has occured on a win32 SDI applications window Pin
Dhiraj kumar Saini31-Aug-07 1:49
Dhiraj kumar Saini31-Aug-07 1:49 
GeneralRe: how to track that no event has occured on a win32 SDI applications window Pin
Nishad S31-Aug-07 2:06
Nishad S31-Aug-07 2:06 
Since it is a Win32 Aplication (No MFC), there will be a message loop.
Like...
while( GetMessage( &msg, ....<br />
{<br />
TranslateMsg...<br />
DisapatchMsg...<br />
}


You have to modify it like...
<br />
SetTimer( IDT_LOCK, LOCK_TIME, 0 );<br />
while( GetMessage( &msg, ....<br />
{<br />
switch( msg.message )<br />
{<br />
case WM_LBUTTONDOWN:<br />
case WM_RBUTTONDOWN:<br />
case WM_KEYDOWN:<br />
SetTimer( IDT_LOCK, LOCK_TIME, 0 );<br />
break;<br />
}<br />
TranslateMsg...<br />
DisapatchMsg...<br />
}


And handle the WM_TIMER in the windowproc, like...

case WM_TIMER:<br />
switch( wParam )<br />
{<br />
case IDT_LOCK:<br />
KillTimer(IDT_LOCK);<br />
DialogBox( ...,IDD_PASSWORD,...<br />
//Do your code...<br />
SetTimer( IDT_LOCK, LOCK_TIME, 0 );<br />
break;<br />
}


Hope you got the idea... Smile | :)

- NS -

QuestionRe: how to track that no event has occured on a win32 SDI applications window Pin
Hamid_RT31-Aug-07 1:44
Hamid_RT31-Aug-07 1:44 
AnswerRe: how to track that no event has occured on a win32 SDI applications window Pin
Dhiraj kumar Saini31-Aug-07 1:50
Dhiraj kumar Saini31-Aug-07 1:50 
AnswerRe: how to track that no event has occured on a win32 SDI applications window Pin
David Crow31-Aug-07 3:32
David Crow31-Aug-07 3:32 
QuestionHow to display data continuously in edit box & How to avoid flickering in edit box Pin
shir_k30-Aug-07 23:38
shir_k30-Aug-07 23:38 
AnswerRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
chandu00430-Aug-07 23:43
chandu00430-Aug-07 23:43 
AnswerRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
Iain Clarke, Warrior Programmer30-Aug-07 23:44
Iain Clarke, Warrior Programmer30-Aug-07 23:44 
JokeRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
David Crow31-Aug-07 3:37
David Crow31-Aug-07 3:37 
GeneralRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
Iain Clarke, Warrior Programmer31-Aug-07 3:50
Iain Clarke, Warrior Programmer31-Aug-07 3:50 
AnswerRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
Hamid_RT31-Aug-07 1:50
Hamid_RT31-Aug-07 1:50 
GeneralRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
shir_k31-Aug-07 4:26
shir_k31-Aug-07 4:26 
GeneralRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
Hamid_RT31-Aug-07 19:33
Hamid_RT31-Aug-07 19:33 
QuestionRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
David Crow31-Aug-07 3:34
David Crow31-Aug-07 3:34 
AnswerRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
shir_k31-Aug-07 4:29
shir_k31-Aug-07 4:29 
GeneralRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
David Crow31-Aug-07 4:36
David Crow31-Aug-07 4:36 
GeneralRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
shir_k31-Aug-07 19:28
shir_k31-Aug-07 19:28 
GeneralRe: How to display data continuously in edit box & How to avoid flickering in edit box Pin
David Crow1-Sep-07 5:47
David Crow1-Sep-07 5:47 
QuestionC++ XPCOM componenet - Linker Error Pin
veer_in30-Aug-07 23:36
veer_in30-Aug-07 23:36 

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.