Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionresizing frame to fit view? Pin
LeeeNN4-Jan-06 20:13
LeeeNN4-Jan-06 20:13 
AnswerRe: resizing frame to fit view? Pin
Owner drawn4-Jan-06 20:17
Owner drawn4-Jan-06 20:17 
QuestionShould not allow copy, cut, paste and delete in the edit boxes using VC++ Pin
K. narasimharao4-Jan-06 19:50
K. narasimharao4-Jan-06 19:50 
AnswerRe: Should not allow copy, cut, paste and delete in the edit boxes using VC++ Pin
Owner drawn4-Jan-06 20:20
Owner drawn4-Jan-06 20:20 
QuestionDisplay multi line colors in Rich edit control using VC++ Pin
K. narasimharao4-Jan-06 19:38
K. narasimharao4-Jan-06 19:38 
AnswerRe: Display multi line colors in Rich edit control using VC++ Pin
Anilkumar K V4-Jan-06 20:48
Anilkumar K V4-Jan-06 20:48 
GeneralRe: Display multi line colors in Rich edit control using VC++ Pin
Owner drawn4-Jan-06 23:15
Owner drawn4-Jan-06 23:15 
GeneralRe: Display multi line colors in Rich edit control using VC++ Pin
Anilkumar K V5-Jan-06 0:35
Anilkumar K V5-Jan-06 0:35 
QuestionDisplay ulti line colors in Rich edit control using VC++ Pin
K. narasimharao4-Jan-06 19:37
K. narasimharao4-Jan-06 19:37 
QuestionEnter Key press on a button does not activate it Pin
GayathriNaveen4-Jan-06 19:15
GayathriNaveen4-Jan-06 19:15 
AnswerRe: Enter Key press on a button does not activate it Pin
birajendu4-Jan-06 19:58
birajendu4-Jan-06 19:58 
AnswerRe: Enter Key press on a button does not activate it Pin
vikas amin4-Jan-06 21:35
vikas amin4-Jan-06 21:35 
GeneralRe: Enter Key press on a button does not activate it Pin
GayathriNaveen4-Jan-06 23:00
GayathriNaveen4-Jan-06 23:00 
GeneralRe: Enter Key press on a button does not activate it Pin
Owner drawn4-Jan-06 23:12
Owner drawn4-Jan-06 23:12 
Questionhow to conect devlopment work station to target device Pin
birajendu4-Jan-06 18:54
birajendu4-Jan-06 18:54 
QuestionCAsyncSocket Pin
jianxin08054-Jan-06 18:49
jianxin08054-Jan-06 18:49 
AnswerRe: CAsyncSocket Pin
Prakash Nadar4-Jan-06 22:04
Prakash Nadar4-Jan-06 22:04 
QuestionA question Pin
pantao5514-Jan-06 16:52
pantao5514-Jan-06 16:52 
AnswerAn answer Pin
PJ Arends4-Jan-06 16:59
professionalPJ Arends4-Jan-06 16:59 
GeneralAn answer TO an Answer Pin
Owner drawn4-Jan-06 17:01
Owner drawn4-Jan-06 17:01 
GeneralRe: An answer TO an Answer Pin
Prakash Nadar4-Jan-06 17:41
Prakash Nadar4-Jan-06 17:41 
GeneralRe: An answer Pin
pantao5514-Jan-06 18:42
pantao5514-Jan-06 18:42 
AnswerRe: A question Pin
Owner drawn4-Jan-06 16:59
Owner drawn4-Jan-06 16:59 
I think you want to display a message box right?

So you can use EN_CHANGE handler for this purpose. And use GetWindowText(...)
to count the number of chars in the edit.

But this won't prevent the user from furthur inserting any chars in the edit.

But you can prevent this by subclassing the edit and handling WM_CHAR message. If the count in less than 3 then fine call the base class handler or else don't call it instead display a message box. This will prevent the user from inserting further chars.

Hope this is what you want.

Love Forgives--Love Gives--Jesus is Love Smile | :)
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord


AnswerRe: A question Pin
lastgen4-Jan-06 17:03
lastgen4-Jan-06 17:03 
GeneralRe: A question Pin
PJ Arends4-Jan-06 17:44
professionalPJ Arends4-Jan-06 17:44 

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.