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

C / C++ / MFC

 
AnswerRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Richard MacCutchan8-Sep-09 23:30
mveRichard MacCutchan8-Sep-09 23:30 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Code-o-mat9-Sep-09 0:37
Code-o-mat9-Sep-09 0:37 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Richard MacCutchan9-Sep-09 2:44
mveRichard MacCutchan9-Sep-09 2:44 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Ragha Venkat11-Sep-09 0:44
Ragha Venkat11-Sep-09 0:44 
GeneralRe: Allowing a control to receive mouse clicks while a modal dialog is up. Pin
Richard MacCutchan11-Sep-09 1:07
mveRichard MacCutchan11-Sep-09 1:07 
Questionhow to write a programme in V C++ the display on the screen like this??? Pin
mr bard28-Sep-09 21:41
mr bard28-Sep-09 21:41 
AnswerRe: how to write a programme in V C++ the display on the screen like this??? Pin
Richard MacCutchan8-Sep-09 23:17
mveRichard MacCutchan8-Sep-09 23:17 
AnswerRe: how to write a programme in V C++ the display on the screen like this??? Pin
Adam Roderick J8-Sep-09 23:28
Adam Roderick J8-Sep-09 23:28 
I didnt get your exact need but still i think you are looking for something mentioned
below:-
Before i answer i have small doubt regarding the type of applicaiton.
so a question.

Whether your application is SDI application with CEditView or

From assumption

If it is CEditView then override OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) function of CView by choosing WM_CHAR from classwizard.
And simply check the character with nChar value.
if it is "s" then simply load the bitmap corresponding to it, but i think CRichEdit will support Bitmap loading.


If Edit box(CEditCtrl) then
Firstly override the PreTranslateMessage of Dialog and
you can use the below code if only one edit box else
get the position to to get the exact edit box before checking for the message WM_CHAR.

BOOL CYourDlg::PreTranslateMessage(MSG* pMsg)
{
if( WM_CHAR == pMsg->message )
{
AfxMessageBox( "sa" );
}
return CDialog::PreTranslateMessage(pMsg);
}

Величие не Бога может быть недооценена.

modified on Wednesday, September 9, 2009 5:39 AM

Questionrequestion create an instance of Command [modified] Pin
MsmVc8-Sep-09 21:30
MsmVc8-Sep-09 21:30 
AnswerRe: requestion create an instance of Command Pin
CPallini8-Sep-09 21:38
mveCPallini8-Sep-09 21:38 
QuestionRe: requestion create an instance of Command Pin
David Crow9-Sep-09 3:23
David Crow9-Sep-09 3:23 
AnswerRe: requestion create an instance of Command Pin
Stuart Dootson9-Sep-09 3:31
professionalStuart Dootson9-Sep-09 3:31 
GeneralRe: requestion create an instance of Command Pin
MsmVc10-Sep-09 18:49
MsmVc10-Sep-09 18:49 
QuestionKill Process using DebugActiveProcess. Pin
gothic_coder8-Sep-09 20:55
gothic_coder8-Sep-09 20:55 
AnswerRe: Kill Process using DebugActiveProcess. Pin
gothic_coder9-Sep-09 3:08
gothic_coder9-Sep-09 3:08 
Questionlibraries, headers (.h) in C language [modified] Pin
programmer2028-Sep-09 20:45
programmer2028-Sep-09 20:45 
AnswerRe: libraries, headers (.h) in C language Pin
ThatsAlok8-Sep-09 20:56
ThatsAlok8-Sep-09 20:56 
AnswerRe: libraries, headers (.h) in C language Pin
CPallini8-Sep-09 20:57
mveCPallini8-Sep-09 20:57 
AnswerRe: libraries, headers (.h) in C language Pin
Hamid_RT8-Sep-09 21:00
Hamid_RT8-Sep-09 21:00 
GeneralRe: libraries, headers (.h) in C language Pin
ThatsAlok8-Sep-09 21:05
ThatsAlok8-Sep-09 21:05 
AnswerRe: libraries, headers (.h) in C language Pin
Richard MacCutchan8-Sep-09 23:13
mveRichard MacCutchan8-Sep-09 23:13 
AnswerRe: libraries, headers (.h) in C language Pin
Selvam R9-Sep-09 2:15
professionalSelvam R9-Sep-09 2:15 
QuestionSource code not working in outlook 2002 Pin
Game-point8-Sep-09 19:35
Game-point8-Sep-09 19:35 
AnswerRe: Source code not working in outlook 2002 Pin
ThatsAlok8-Sep-09 21:03
ThatsAlok8-Sep-09 21:03 
AnswerRe: Source code not working in outlook 2002 Pin
Selvam R9-Sep-09 2:19
professionalSelvam R9-Sep-09 2:19 

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.