Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: position of dialog box Pin
valikac10-Jun-03 19:23
valikac10-Jun-03 19:23 
GeneralRe: position of dialog box Pin
Majid Shahabfar10-Jun-03 19:51
Majid Shahabfar10-Jun-03 19:51 
QuestionHow to cancel the CADORecordset.AddNew() action Pin
winnew10-Jun-03 18:34
winnew10-Jun-03 18:34 
AnswerRe: How to cancel the CADORecordset.AddNew() action Pin
Toni7810-Jun-03 18:49
Toni7810-Jun-03 18:49 
QuestionHow to cancel the CADORecordset.AddNew() action Pin
winnew10-Jun-03 18:33
winnew10-Jun-03 18:33 
QuestionHow Do i monitor if a key has been depressed? Pin
Member 40481310-Jun-03 18:11
Member 40481310-Jun-03 18:11 
AnswerRe: How Do i monitor if a key has been depressed? Pin
Ryan Binns10-Jun-03 18:19
Ryan Binns10-Jun-03 18:19 
GeneralRe: How Do i monitor if a key has been depressed? Pin
Member 40481310-Jun-03 18:26
Member 40481310-Jun-03 18:26 
hi~` thanks for the reply

i have something like this


BOOL CimgtestDlg::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->message==WM_KEYDOWN)
{
if (pMsg->wParam == VK_SPACE) {
lpreview = 1;
}
if(pMsg->wParam==VK_ESCAPE)
return TRUE;
}
return CDialog::PreTranslateMessage(pMsg);
}
so this means when i press space key lpreview will be set to 1.
if the user keeps pressing space key the lpreview will always be 1.
However, what i want is that when the user doesn't press anything
lpreview will be set to 0. How do i do that?

Thanks
GeneralRe: How Do i monitor if a key has been depressed? Pin
Ryan Binns10-Jun-03 18:31
Ryan Binns10-Jun-03 18:31 
GeneralRe: How Do i monitor if a key has been depressed? Pin
Member 40481310-Jun-03 18:33
Member 40481310-Jun-03 18:33 
Generalwordxp table Pin
Fool's Garden10-Jun-03 18:05
Fool's Garden10-Jun-03 18:05 
GeneralRe: wordxp table Pin
Larry J. Siddens11-Jun-03 9:44
Larry J. Siddens11-Jun-03 9:44 
Questionhow to operate a control of a parent class? Pin
Anonymous10-Jun-03 17:46
Anonymous10-Jun-03 17:46 
AnswerRe: how to operate a control of a parent class? Pin
valikac10-Jun-03 19:24
valikac10-Jun-03 19:24 
GeneralC++ DLL Pin
vbtester10-Jun-03 17:21
vbtester10-Jun-03 17:21 
GeneralRe: C++ DLL Pin
valikac10-Jun-03 19:27
valikac10-Jun-03 19:27 
GeneralRe: C++ DLL Pin
basementman11-Jun-03 4:10
basementman11-Jun-03 4:10 
GeneralRe: C++ DLL Pin
vbtester11-Jun-03 5:02
vbtester11-Jun-03 5:02 
GeneralRe: C++ DLL Pin
vbtester12-Jun-03 7:08
vbtester12-Jun-03 7:08 
GeneralProblem with multiple processes listening on the same UDP port Pin
Taka Muraoka10-Jun-03 15:49
Taka Muraoka10-Jun-03 15:49 
GeneralRe: Problem with multiple processes listening on the same UDP port Pin
Ryan Binns10-Jun-03 18:18
Ryan Binns10-Jun-03 18:18 
GeneralRe: Problem with multiple processes listening on the same UDP port Pin
Taka Muraoka10-Jun-03 18:22
Taka Muraoka10-Jun-03 18:22 
Generalchecking for unsupported file name characters in an edit control Pin
Steven M Hunt10-Jun-03 15:10
Steven M Hunt10-Jun-03 15:10 
GeneralRe: checking for unsupported file name characters in an edit control Pin
Toni7810-Jun-03 16:58
Toni7810-Jun-03 16:58 
GeneralRe: checking for unsupported file name characters in an edit control Pin
John M. Drescher10-Jun-03 17:22
John M. Drescher10-Jun-03 17:22 

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.