Click here to Skip to main content
15,886,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: A question Pin
Owner drawn4-Jan-06 18:03
Owner drawn4-Jan-06 18:03 
GeneralRe: A question Pin
pantao5514-Jan-06 18:51
pantao5514-Jan-06 18:51 
Questionabout create a strange window(can change size) and paint it gradient background. Pin
HOW WHAT4-Jan-06 15:51
HOW WHAT4-Jan-06 15:51 
AnswerRe: about create a strange window(can change size) and paint it gradient background. Pin
Owner drawn4-Jan-06 16:52
Owner drawn4-Jan-06 16:52 
GeneralRe: about create a strange window(can change size) and paint it gradient background. Pin
HOW WHAT4-Jan-06 18:51
HOW WHAT4-Jan-06 18:51 
GeneralRe: about create a strange window(can change size) and paint it gradient background. Pin
Owner drawn4-Jan-06 21:02
Owner drawn4-Jan-06 21:02 
AnswerRe: about create a strange window(can change size) and paint it gradient background. Pin
rohinimtech8-Jan-06 18:54
rohinimtech8-Jan-06 18:54 
QuestionPlease give me some suggestion! Pin
LaHaHa4-Jan-06 15:08
LaHaHa4-Jan-06 15:08 
AnswerRe: Please give me some suggestion! Pin
Owner drawn4-Jan-06 17:16
Owner drawn4-Jan-06 17:16 
GeneralRe: Please give me some suggestion! Pin
LaHaHa4-Jan-06 18:28
LaHaHa4-Jan-06 18:28 
GeneralRe: Please give me some suggestion! Pin
Owner drawn4-Jan-06 20:15
Owner drawn4-Jan-06 20:15 
GeneralRe: Please give me some suggestion! Pin
LaHaHa4-Jan-06 21:21
LaHaHa4-Jan-06 21:21 
GeneralRe: Please give me some suggestion! Pin
vikas amin4-Jan-06 20:08
vikas amin4-Jan-06 20:08 
AnswerRe: Please give me some suggestion! Pin
Cool Ju4-Jan-06 22:08
Cool Ju4-Jan-06 22:08 
GeneralRe: Please give me some suggestion! Pin
LaHaHa4-Jan-06 23:33
LaHaHa4-Jan-06 23:33 

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.