Click here to Skip to main content
15,900,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: SetItemText() Problem Pin
David Crow18-Aug-06 3:16
David Crow18-Aug-06 3:16 
QuestionRe: SetItemText() Problem Pin
prasad_som18-Aug-06 3:19
prasad_som18-Aug-06 3:19 
AnswerRe: SetItemText() Problem Pin
Kiran Pinjala18-Aug-06 3:26
Kiran Pinjala18-Aug-06 3:26 
QuestionOnCancel Pin
SandhyaSri18-Aug-06 1:35
SandhyaSri18-Aug-06 1:35 
AnswerRe: OnCancel Pin
Cedric Moonen18-Aug-06 1:48
Cedric Moonen18-Aug-06 1:48 
GeneralRe: OnCancel Pin
SandhyaSri18-Aug-06 1:57
SandhyaSri18-Aug-06 1:57 
GeneralRe: OnCancel Pin
Cedric Moonen18-Aug-06 2:20
Cedric Moonen18-Aug-06 2:20 
AnswerRe: OnCancel Pin
David Crow18-Aug-06 3:08
David Crow18-Aug-06 3:08 
SandhyaSri wrote:
The message will be raised even if I press "OnCancel".


Of course it will. That's because the edit control has lost focus. The code is doing exactly what it is suppose to.

A better solution is to handle the EN_CHANGE notification, and if the value in the edit control is ever greater than 3, disable the OK button. Doing validation is response to EN_KILLFOCUS is just the wrong approach.


"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

"Judge not by the eye but by the heart." - Native American Proverb


Questionwinsock errors Pin
afpr18-Aug-06 1:20
afpr18-Aug-06 1:20 
AnswerRe: winsock errors Pin
Rage18-Aug-06 1:27
professionalRage18-Aug-06 1:27 
GeneralRe: winsock errors Pin
afpr18-Aug-06 3:21
afpr18-Aug-06 3:21 
GeneralRe: winsock errors Pin
Rage18-Aug-06 3:30
professionalRage18-Aug-06 3:30 
QuestionDraw on Dialog Pin
erikamania18-Aug-06 1:04
erikamania18-Aug-06 1:04 
AnswerRe: Draw on Dialog Pin
Cedric Moonen18-Aug-06 1:10
Cedric Moonen18-Aug-06 1:10 
AnswerRe: Draw on Dialog Pin
Prakash Nadar18-Aug-06 1:19
Prakash Nadar18-Aug-06 1:19 
AnswerRe: Draw on Dialog [modified] Pin
_AnsHUMAN_ 18-Aug-06 1:35
_AnsHUMAN_ 18-Aug-06 1:35 
AnswerRe: Draw on Dialog Pin
Hamid_RT18-Aug-06 2:46
Hamid_RT18-Aug-06 2:46 
QuestionAbout CView problem,thank:) Pin
rxgmoral18-Aug-06 1:03
rxgmoral18-Aug-06 1:03 
AnswerRe: About CView problem,thank:) Pin
Rage18-Aug-06 1:28
professionalRage18-Aug-06 1:28 
QuestionRe: About CView problem,thank:) Pin
David Crow18-Aug-06 3:18
David Crow18-Aug-06 3:18 
Questionusing dll in VB(please help) Pin
aaaan18-Aug-06 0:59
aaaan18-Aug-06 0:59 
AnswerRe: using dll in VB(please help) Pin
Cedric Moonen18-Aug-06 1:12
Cedric Moonen18-Aug-06 1:12 
QuestionHow to hide the file names while in Thumbnail View ? Pin
Amar Sutar18-Aug-06 0:40
Amar Sutar18-Aug-06 0:40 
Questionhow to change the highlight color of listctrl Pin
GANsJob18-Aug-06 0:39
GANsJob18-Aug-06 0:39 
AnswerRe: how to change the highlight color of listctrl Pin
Tara1418-Aug-06 1:20
Tara1418-Aug-06 1:20 

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.