Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LNK4099 problem Pin
Nelek29-Oct-07 21:53
protectorNelek29-Oct-07 21:53 
AnswerRe: LNK4099 problem Pin
JudyL_MD19-Oct-07 2:38
JudyL_MD19-Oct-07 2:38 
QuestionReading an inf file Pin
Suneet.0318-Oct-07 23:07
Suneet.0318-Oct-07 23:07 
AnswerRe: Reading an inf file Pin
Nelek18-Oct-07 23:30
protectorNelek18-Oct-07 23:30 
GeneralRe: Reading an inf file Pin
JudyL_MD19-Oct-07 2:39
JudyL_MD19-Oct-07 2:39 
AnswerRe: Reading an inf file Pin
JudyL_MD19-Oct-07 2:40
JudyL_MD19-Oct-07 2:40 
QuestionAbout EN_KILLFOCUS or EN_SETFOCUS in WIN32 API Pin
hkim_zoro18-Oct-07 22:16
hkim_zoro18-Oct-07 22:16 
AnswerRe: About EN_KILLFOCUS or EN_SETFOCUS in WIN32 API Pin
Nelek18-Oct-07 22:37
protectorNelek18-Oct-07 22:37 
Hi,

for example I used it in my project to select which functionality to use when Enter is pressed. I have a HotKey to open/close windows for parametrization of objects, but I want to have the functionality to accept and check what was written in a edit. So I made:
void CMyView::OnEdit1SetFocus ()
{
m_bEditFocused = TRUE;
return;
}

void CMyView::OnEdit1KillFocus ()
{
m_bEditFocused = FALSE;
return;
}

//This is the message that has a related HotKey
void CMyView::OnEnterKeyPressed() 
{
	if (m_bEditFocused )
		//Get and validate what in the edit is
	else if (!m_bEditFocused && m_bOtherBool)
		//Do another thing
	else
		//Close this window
	
	return;
}



I hope it helps



Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: About EN_KILLFOCUS or EN_SETFOCUS in WIN32 API Pin
hkim_zoro18-Oct-07 23:18
hkim_zoro18-Oct-07 23:18 
GeneralRe: About EN_KILLFOCUS or EN_SETFOCUS in WIN32 API Pin
Nelek18-Oct-07 23:29
protectorNelek18-Oct-07 23:29 
AnswerRe: About EN_KILLFOCUS or EN_SETFOCUS in WIN32 API Pin
Nishad S18-Oct-07 23:07
Nishad S18-Oct-07 23:07 
GeneralRe: About EN_KILLFOCUS or EN_SETFOCUS in WIN32 API Pin
hkim_zoro19-Oct-07 6:12
hkim_zoro19-Oct-07 6:12 
QuestionHow to copy file much faster? Pin
kcynic18-Oct-07 22:07
kcynic18-Oct-07 22:07 
AnswerRe: How to copy file much faster? Pin
MarkusStr18-Oct-07 22:41
MarkusStr18-Oct-07 22:41 
GeneralRe: How to copy file much faster? Pin
kcynic19-Oct-07 19:59
kcynic19-Oct-07 19:59 
GeneralRe: How to copy file much faster? Pin
Matthew Faithfull18-Oct-07 22:53
Matthew Faithfull18-Oct-07 22:53 
GeneralRe: How to copy file much faster? Pin
kcynic19-Oct-07 20:00
kcynic19-Oct-07 20:00 
AnswerRe: How to copy file much faster? Pin
JudyL_MD19-Oct-07 2:44
JudyL_MD19-Oct-07 2:44 
GeneralRe: How to copy file much faster? Pin
Tydia-kun19-Oct-07 3:53
Tydia-kun19-Oct-07 3:53 
GeneralRe: How to copy file much faster? Pin
JudyL_MD19-Oct-07 4:01
JudyL_MD19-Oct-07 4:01 
GeneralRe: How to copy file much faster? Pin
Tydia-kun19-Oct-07 4:05
Tydia-kun19-Oct-07 4:05 
GeneralRe: How to copy file much faster? Pin
kcynic19-Oct-07 20:01
kcynic19-Oct-07 20:01 
Questionneed an approach. Pin
narayanagvs18-Oct-07 21:40
narayanagvs18-Oct-07 21:40 
AnswerRe: need an approach. Pin
Nelek18-Oct-07 21:59
protectorNelek18-Oct-07 21:59 
GeneralRe: need an approach. Pin
Matthew Faithfull18-Oct-07 23:26
Matthew Faithfull18-Oct-07 23:26 

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.