Click here to Skip to main content
15,911,139 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDisabled images on buttons Pin
PJ Arends18-Sep-01 21:32
professionalPJ Arends18-Sep-01 21:32 
GeneralRe: Disabled images on buttons Pin
18-Sep-01 22:10
suss18-Sep-01 22:10 
QuestionMake an array of words from a sentence? Pin
Tryhard18-Sep-01 20:47
Tryhard18-Sep-01 20:47 
AnswerRe: Make an array of words from a sentence? Pin
Christian Graus18-Sep-01 22:30
protectorChristian Graus18-Sep-01 22:30 
GeneralWin32 edit box problems Pin
Christian Graus18-Sep-01 20:26
protectorChristian Graus18-Sep-01 20:26 
GeneralRe: Win32 edit box problems Pin
18-Sep-01 22:19
suss18-Sep-01 22:19 
GeneralRe: Win32 edit box problems Pin
Christian Graus18-Sep-01 22:25
protectorChristian Graus18-Sep-01 22:25 
GeneralRe: Win32 edit box problems Pin
Paul A. Howes19-Sep-01 3:05
Paul A. Howes19-Sep-01 3:05 
Because edit boxes have their own "window class" (in the Win32 sense of the word), which means they also have their own callback function, the WM_KEYUP and WM_KEYDOWN messages are handled internally. What you want to do is handle them yourself, which will require a subclass (again, in the Win32 sense of the word) of the edit box.

No so long ago, I wrote an article that may be useful to you. Look at the subclass example, as it intercepts the WM_CHAR message and allows some keystrokes through, while denying others.

Feel free to drop me an e-mail if you have any questions about the article or the sample code.

--
Paul

"I drank... WHAT?"
QuestionHow can I programmatically insert an OLE objects (or image) into RTF control??? Pin
Youknowme18-Sep-01 18:22
Youknowme18-Sep-01 18:22 
GeneralThread and ActiveX component Pin
Farah Mansor18-Sep-01 18:13
Farah Mansor18-Sep-01 18:13 
GeneralRe: Thread and ActiveX component Pin
Ghazi H. Wadi19-Sep-01 14:01
Ghazi H. Wadi19-Sep-01 14:01 
GeneralRe: Thread and ActiveX component Pin
Farah Mansor19-Sep-01 15:32
Farah Mansor19-Sep-01 15:32 
GeneralRe: Thread and ActiveX component Pin
Ghazi H. Wadi19-Sep-01 16:52
Ghazi H. Wadi19-Sep-01 16:52 
GeneralRe: Thread and ActiveX component Pin
Farah Mansor19-Sep-01 21:04
Farah Mansor19-Sep-01 21:04 
GeneralRe: Thread and ActiveX component Pin
Ghazi H. Wadi20-Sep-01 12:46
Ghazi H. Wadi20-Sep-01 12:46 
GeneralRe: Thread and ActiveX component Pin
Farah Mansor20-Sep-01 15:58
Farah Mansor20-Sep-01 15:58 
GeneralRe: Thread and ActiveX component Pin
Ghazi H. Wadi21-Sep-01 16:09
Ghazi H. Wadi21-Sep-01 16:09 
GeneralRe: Thread and ActiveX component Pin
24-Sep-01 19:47
suss24-Sep-01 19:47 
Generalconsecutive sums Pin
minikg18-Sep-01 15:38
minikg18-Sep-01 15:38 
GeneralRe: consecutive sums Pin
Christian Graus18-Sep-01 16:02
protectorChristian Graus18-Sep-01 16:02 
GeneralRe: consecutive sums Pin
minikg18-Sep-01 16:04
minikg18-Sep-01 16:04 
GeneralRe: consecutive sums Pin
minikg19-Sep-01 12:28
minikg19-Sep-01 12:28 
GeneralRe: consecutive sums Pin
Christian Graus19-Sep-01 12:47
protectorChristian Graus19-Sep-01 12:47 
GeneralRe: consecutive sums Pin
minikg19-Sep-01 13:22
minikg19-Sep-01 13:22 
GeneralRe: consecutive sums Pin
Christian Graus19-Sep-01 14:23
protectorChristian Graus19-Sep-01 14:23 

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.