Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Insert at Cursor position in CEdit Pin
Eytukan23-Sep-05 3:50
Eytukan23-Sep-05 3:50 
GeneralRe: Insert at Cursor position in CEdit Pin
Eytukan23-Sep-05 2:54
Eytukan23-Sep-05 2:54 
QuestionNeed a simple way to change Back Color of CEdit & CStatic controls Pin
vikas amin23-Sep-05 2:05
vikas amin23-Sep-05 2:05 
AnswerRe: Need a simple way to change Back Color of CEdit & CStatic controls Pin
prasad_som23-Sep-05 2:40
prasad_som23-Sep-05 2:40 
GeneralRe: Need a simple way to change Back Color of CEdit & CStatic controls Pin
Laffis23-Sep-05 2:57
Laffis23-Sep-05 2:57 
GeneralRe: Need a simple way to change Back Color of CEdit & CStatic controls Pin
vikas amin23-Sep-05 3:11
vikas amin23-Sep-05 3:11 
GeneralRe: Need a simple way to change Back Color of CEdit & CStatic controls Pin
vikas amin23-Sep-05 3:09
vikas amin23-Sep-05 3:09 
GeneralRe: Need a simple way to change Back Color of CEdit & CStatic controls Pin
Laffis23-Sep-05 3:18
Laffis23-Sep-05 3:18 
Use that message and handle it, amin, it is very easy. Do a search on the web you will get an example in msdn. I just spent 5 min doing that and get a test case working.

As to the number thing, you should be able to config the edit ctrl to accept number only. In the code, you may be able to use something like this:

DDV_MinMaxLong(...) <-- check reference how to use it. It's been a while since I last use them.

What u will get is if user inputs an invalid entry, a messagebox will come up telling him so. You do not even need to change the CEdit color to let him know.
GeneralRe: Need a simple way to change Back Color of CEdit &amp; CStatic controls Pin
vikas amin23-Sep-05 3:34
vikas amin23-Sep-05 3:34 
QuestionURLDownloadToFile intercepting my call Pin
spsharma23-Sep-05 1:35
spsharma23-Sep-05 1:35 
QuestionDirectShow Editing Services transition and effect priority problem... Pin
Kramer_198223-Sep-05 1:21
Kramer_198223-Sep-05 1:21 
Question::LoadBitmap Pin
Laffis23-Sep-05 1:10
Laffis23-Sep-05 1:10 
AnswerRe: ::LoadBitmap Pin
Cedric Moonen23-Sep-05 1:23
Cedric Moonen23-Sep-05 1:23 
GeneralRe: ::LoadBitmap Pin
Laffis23-Sep-05 1:41
Laffis23-Sep-05 1:41 
GeneralRe: ::LoadBitmap Pin
Cedric Moonen23-Sep-05 2:01
Cedric Moonen23-Sep-05 2:01 
GeneralRe: ::LoadBitmap Pin
Laffis23-Sep-05 2:40
Laffis23-Sep-05 2:40 
QuestionContext menu in TreeView control ?? Pin
Anonymous23-Sep-05 1:04
Anonymous23-Sep-05 1:04 
AnswerRe: Context menu in TreeView control ?? Pin
khan++23-Sep-05 1:27
khan++23-Sep-05 1:27 
GeneralRe: Context menu in TreeView control ?? Pin
Anonymous23-Sep-05 23:09
Anonymous23-Sep-05 23:09 
QuestionMDI without initial window Pin
tooho23-Sep-05 1:01
tooho23-Sep-05 1:01 
AnswerRe: MDI without initial window Pin
prasad_som23-Sep-05 1:56
prasad_som23-Sep-05 1:56 
AnswerRe: MDI without initial window Pin
vikas amin23-Sep-05 1:57
vikas amin23-Sep-05 1:57 
GeneralRe: MDI without initial window Pin
tooho23-Sep-05 3:26
tooho23-Sep-05 3:26 
Questionstd::multimap & std::find() Pin
Themis23-Sep-05 0:06
Themis23-Sep-05 0:06 
AnswerOfftopic Pin
Jörgen Sigvardsson23-Sep-05 0:30
Jörgen Sigvardsson23-Sep-05 0:30 

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.