Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: if is someone who can help me? PLEASE!!!!!! Pin
Bravoone_200614-Aug-06 21:27
Bravoone_200614-Aug-06 21:27 
AnswerRe: if is someone who can help me? PLEASE!!!!!! Pin
Naveen14-Aug-06 21:58
Naveen14-Aug-06 21:58 
AnswerRe: if is someone who can help me? PLEASE!!!!!! Pin
Hamid_RT14-Aug-06 21:35
Hamid_RT14-Aug-06 21:35 
GeneralRe: if is someone who can help me? PLEASE!!!!!! Pin
Bravoone_200614-Aug-06 21:39
Bravoone_200614-Aug-06 21:39 
GeneralRe: if is someone who can help me? PLEASE!!!!!! Pin
Hamid_RT14-Aug-06 21:45
Hamid_RT14-Aug-06 21:45 
AnswerRe: if is someone who can help me? PLEASE!!!!!! Pin
Bravoone_200614-Aug-06 21:58
Bravoone_200614-Aug-06 21:58 
GeneralRe: if is someone who can help me? PLEASE!!!!!! Pin
Hamid_RT14-Aug-06 22:08
Hamid_RT14-Aug-06 22:08 
QuestionRe: if is someone who can help me? PLEASE!!!!!! Pin
Bravoone_200614-Aug-06 22:17
Bravoone_200614-Aug-06 22:17 
no is not work he jump forward to next edit and nothing is hapening !
you no how ?

this is the code :


BOOL CMyList::PreTranslateMessage(MSG* pMsg)
{

if( WM_KEYDOWN == pMsg->message )
{

if( VK_RETURN == pMsg->wParam )
{

pMsg->wParam = VK_TAB;
}

}

else if( WM_SETFOCUS == pMsg->message )
{
HWND hWindowHandle = (HWND)pMsg->wParam;
if( hWindowHandle == m_city.m_hWnd )
{

UpdateData();


CWaitCursor wait; // Display a wait cursor
//---------------------------------HEADER------------------------------------------//
int x = m_list2.GetItemCount();


for (int j = 0; j < x; j++) // For each item in the list
{
CString strWord;

strWord = m_list2.GetItemText(j, 0); // Get the word

strWord.TrimLeft(); // Remove leading spaces
strWord.TrimRight(); // Remove trailing spaces

// Overwrite the old word with the new trimmed word
m_list2.SetItemText(j, 0, strWord);

}
//----------------------------------------------------------------------------------//

CString sName, sCity, sCountry;
m_name.GetWindowText(sName);
m_city.GetWindowText(sCity);
sCountry.Empty();

for(int nItem = 0; nItem < m_list2.GetItemCount(); ++nItem)
{
CString const sFirstColumnText = m_list2.GetItemText( nItem, 0 );
CString const sSecondColumnText = m_list2.GetItemText( nItem, 1 );
if( sName == sFirstColumnText & sCity == sSecondColumnText)
{
sCountry = m_list2.GetItemText( nItem, 2 );
m_rezult.SetWindowText(sCountry);

}

}

}

}
return CDialog::PreTranslateMessage(pMsg);
}

he jump to m_rezult and ...nothig !

Bravoone

AnswerRe: if is someone who can help me? PLEASE!!!!!! Pin
Hamid_RT14-Aug-06 22:32
Hamid_RT14-Aug-06 22:32 
GeneralRe: if is someone who can help me? PLEASE!!!!!! Pin
Bravoone_200614-Aug-06 22:41
Bravoone_200614-Aug-06 22:41 
QuestionRe: if is someone who can help me? PLEASE!!!!!! Pin
Bravoone_200614-Aug-06 23:07
Bravoone_200614-Aug-06 23:07 
AnswerRe: if is someone who can help me? PLEASE!!!!!! Pin
Hamid_RT14-Aug-06 23:32
Hamid_RT14-Aug-06 23:32 
GeneralRe: if is someone who can help me? PLEASE!!!!!! Pin
Bravoone_200614-Aug-06 23:44
Bravoone_200614-Aug-06 23:44 
QuestionRe: if is someone who can help me? PLEASE!!!!!! Pin
Bravoone_200615-Aug-06 1:00
Bravoone_200615-Aug-06 1:00 
AnswerRe: if is someone who can help me? PLEASE!!!!!! Pin
Hamid_RT15-Aug-06 8:13
Hamid_RT15-Aug-06 8:13 
AnswerRe: if is someone who can help me? PLEASE!!!!!! Pin
David Crow15-Aug-06 4:20
David Crow15-Aug-06 4:20 
AnswerRe: if is someone who can help me? PLEASE!!!!!! Pin
David Crow15-Aug-06 4:18
David Crow15-Aug-06 4:18 
QuestionRe: if is someone who can help me? PLEASE!!!!!! Pin
Bravoone_200615-Aug-06 19:56
Bravoone_200615-Aug-06 19:56 
AnswerRe: if is someone who can help me? PLEASE!!!!!! Pin
David Crow16-Aug-06 2:36
David Crow16-Aug-06 2:36 
QuestionVC6 Compilation options Pin
Waldermort14-Aug-06 20:08
Waldermort14-Aug-06 20:08 
AnswerRe: VC6 Compilation options Pin
Naveen14-Aug-06 20:15
Naveen14-Aug-06 20:15 
GeneralRe: VC6 Compilation options Pin
Waldermort14-Aug-06 20:22
Waldermort14-Aug-06 20:22 
GeneralRe: VC6 Compilation options Pin
Naveen14-Aug-06 21:01
Naveen14-Aug-06 21:01 
GeneralRe: VC6 Compilation options Pin
Waldermort14-Aug-06 23:05
Waldermort14-Aug-06 23:05 
AnswerRe: VC6 Compilation options Pin
Mike Dimmick15-Aug-06 1:46
Mike Dimmick15-Aug-06 1:46 

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.