Click here to Skip to main content
15,891,739 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Handle Space Key in Edit Box. Pin
Nishad S18-Feb-09 21:23
Nishad S18-Feb-09 21:23 
GeneralRe: Handle Space Key in Edit Box. Pin
Le@rner18-Feb-09 22:14
Le@rner18-Feb-09 22:14 
GeneralRe: Handle Space Key in Edit Box. Pin
Le@rner18-Feb-09 22:20
Le@rner18-Feb-09 22:20 
GeneralRe: Handle Space Key in Edit Box. Pin
Nishad S19-Feb-09 0:46
Nishad S19-Feb-09 0:46 
GeneralRe: Handle Space Key in Edit Box. Pin
Nishad S18-Feb-09 22:22
Nishad S18-Feb-09 22:22 
GeneralRe: Handle Space Key in Edit Box. Pin
Le@rner18-Feb-09 22:26
Le@rner18-Feb-09 22:26 
GeneralRe: Handle Space Key in Edit Box. Pin
Iain Clarke, Warrior Programmer18-Feb-09 22:44
Iain Clarke, Warrior Programmer18-Feb-09 22:44 
GeneralRe: Handle Space Key in Edit Box. Pin
Le@rner18-Feb-09 22:48
Le@rner18-Feb-09 22:48 
m try this.

but there is one problem when i press space key at end than the cursor moves to strat of edit box.


void Ctest::OnEnChangeEdit1()
{
CString str;

GetDlgItemText(IDC_EDIT1,str);

if(str.Mid(0,1)==' ')
{
SetDlgItemText(IDC_EDIT1,str.TrimLeft());
}
int length=str.GetLength();

length=length--;

if(str.Mid(length,1)==' ')
{
SetDlgItemText(IDC_EDIT1,str.TrimRight());
}
}


please tell me now what can i do.

To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

GeneralRe: Handle Space Key in Edit Box. Pin
Iain Clarke, Warrior Programmer18-Feb-09 23:00
Iain Clarke, Warrior Programmer18-Feb-09 23:00 
GeneralRe: Handle Space Key in Edit Box. Pin
Le@rner18-Feb-09 23:02
Le@rner18-Feb-09 23:02 
GeneralRe: Handle Space Key in Edit Box. Pin
Cedric Moonen18-Feb-09 23:55
Cedric Moonen18-Feb-09 23:55 
GeneralRe: Handle Space Key in Edit Box. Pin
Le@rner19-Feb-09 0:12
Le@rner19-Feb-09 0:12 
GeneralRe: Handle Space Key in Edit Box. Pin
Iain Clarke, Warrior Programmer19-Feb-09 0:30
Iain Clarke, Warrior Programmer19-Feb-09 0:30 
QuestionReading register key values Pin
pri_skit18-Feb-09 20:59
pri_skit18-Feb-09 20:59 
AnswerRe: Reading register key values Pin
David Crow19-Feb-09 8:15
David Crow19-Feb-09 8:15 
GeneralRe: Reading register key values Pin
Member 437896119-Feb-09 19:40
Member 437896119-Feb-09 19:40 
QuestionRe: Reading register key values Pin
David Crow20-Feb-09 2:18
David Crow20-Feb-09 2:18 
QuestionNeed To Create a crawler/spider in vc++ Pin
Ash_VCPP18-Feb-09 20:39
Ash_VCPP18-Feb-09 20:39 
AnswerRe: Need To Create a crawler/spider in vc++ Pin
Chandrasekharan P18-Feb-09 21:06
Chandrasekharan P18-Feb-09 21:06 
GeneralRe: Need To Create a crawler/spider in vc++ Pin
CPallini18-Feb-09 21:19
mveCPallini18-Feb-09 21:19 
GeneralRe: Need To Create a crawler/spider in vc++ Pin
Ash_VCPP18-Feb-09 22:14
Ash_VCPP18-Feb-09 22:14 
GeneralRe: Need To Create a crawler/spider in vc++ Pin
CPallini18-Feb-09 22:29
mveCPallini18-Feb-09 22:29 
GeneralRe: Need To Create a crawler/spider in vc++ Pin
Ash_VCPP19-Feb-09 0:18
Ash_VCPP19-Feb-09 0:18 
GeneralRe: Need To Create a crawler/spider in vc++ Pin
Ash_VCPP18-Feb-09 22:05
Ash_VCPP18-Feb-09 22:05 
AnswerRe: Need To Create a crawler/spider in vc++ Pin
_AnsHUMAN_ 18-Feb-09 21:32
_AnsHUMAN_ 18-Feb-09 21:32 

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.