Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: forcing repaint after CDC::TextOut function Pin
Ali Rafiee18-Jul-06 7:37
Ali Rafiee18-Jul-06 7:37 
GeneralRe: forcing repaint after CDC::TextOut function Pin
David Crow18-Jul-06 7:38
David Crow18-Jul-06 7:38 
QuestionHow to show Full Sceen Image Pin
Max++18-Jul-06 4:11
Max++18-Jul-06 4:11 
AnswerRe: How to show Full Sceen Image Pin
Randor 18-Jul-06 4:26
professional Randor 18-Jul-06 4:26 
AnswerRe: How to show Full Sceen Image Pin
Hamid_RT18-Jul-06 4:38
Hamid_RT18-Jul-06 4:38 
QuestionRe: How to show Full Sceen Image Pin
David Crow18-Jul-06 4:44
David Crow18-Jul-06 4:44 
AnswerRe: How to show Full Sceen Image Pin
Max++18-Jul-06 4:54
Max++18-Jul-06 4:54 
GeneralRe: How to show Full Sceen Image Pin
Ali Rafiee18-Jul-06 5:02
Ali Rafiee18-Jul-06 5:02 
GeneralRe: How to show Full Sceen Image Pin
Hamid_RT18-Jul-06 5:24
Hamid_RT18-Jul-06 5:24 
AnswerRe: How to show Full Sceen Image Pin
Ali Rafiee18-Jul-06 4:52
Ali Rafiee18-Jul-06 4:52 
AnswerRe: How to show Full Sceen Image Pin
ThatsAlok18-Jul-06 21:23
ThatsAlok18-Jul-06 21:23 
Questionmerging two .rc files? [modified] Pin
Kora18-Jul-06 4:09
Kora18-Jul-06 4:09 
AnswerRe: merging two .rc files? Pin
Randor 18-Jul-06 4:40
professional Randor 18-Jul-06 4:40 
AnswerRe: merging two .rc files? Pin
Kora18-Jul-06 6:03
Kora18-Jul-06 6:03 
AnswerRe: merging two .rc files? Pin
toxcct18-Jul-06 6:03
toxcct18-Jul-06 6:03 
GeneralRe: merging two .rc files? [modified] Pin
Kora18-Jul-06 6:42
Kora18-Jul-06 6:42 
Questionhandling the RETURN key Pin
Tara1418-Jul-06 4:08
Tara1418-Jul-06 4:08 
AnswerRe: handling the RETURN key Pin
Randor 18-Jul-06 4:38
professional Randor 18-Jul-06 4:38 
AnswerRe: handling the RETURN key Pin
David Crow18-Jul-06 4:44
David Crow18-Jul-06 4:44 
GeneralRe: handling the RETURN key [modified] Pin
Tara1418-Jul-06 4:51
Tara1418-Jul-06 4:51 
GeneralRe: handling the RETURN key Pin
David Crow18-Jul-06 5:12
David Crow18-Jul-06 5:12 
GeneralRe: handling the RETURN key Pin
Tara1418-Jul-06 5:27
Tara1418-Jul-06 5:27 
GeneralRe: handling the RETURN key Pin
stanlymt18-Jul-06 6:27
stanlymt18-Jul-06 6:27 
This is not the proper way of handling RETURN Key. If you have more than one edit box and if you want to handle RETURN in different ways for each edit box, then this method fails.
Check the below code:

BOOL CApplyValue::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message== WM_KEYDOWN && pMsg->wParam == VK_RETURN)
{
if (pMsg->hwnd == ::GetDlgItem(*this, IDC_EDIT1) //Replace with proper resource ID
{
//Do your processing for Edit box1
GetDlgItem(*this, IDC_EDIT2)->SetFocus(); //If you want to set focus to next edit box
}
else if(pMsg->hwnd == ::GetDlgItem(*this, IDC_EDIT2)
{
//Do your processing for Edit box2
}
return TRUE;
}
return CDialog::PreTranslateMessage(pMsg);
}

GeneralRe: handling the RETURN key Pin
Tara1418-Jul-06 8:45
Tara1418-Jul-06 8:45 
QuestionGetComputerNameEx Pin
Subramaniam s.V.18-Jul-06 3:27
Subramaniam s.V.18-Jul-06 3:27 

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.