Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFirst-change exception... Pin
CDotNetUser4-Jul-02 8:53
CDotNetUser4-Jul-02 8:53 
QuestionWho killed my message? Pin
4-Jul-02 8:50
suss4-Jul-02 8:50 
AnswerRe: Who killed my message? Pin
Ravi Bhavnani4-Jul-02 9:58
professionalRavi Bhavnani4-Jul-02 9:58 
Generalparsing the text file Pin
4-Jul-02 8:47
suss4-Jul-02 8:47 
GeneralRe: parsing the text file Pin
Chris Losinger4-Jul-02 9:09
professionalChris Losinger4-Jul-02 9:09 
Generalfind string from file Pin
4-Jul-02 8:40
suss4-Jul-02 8:40 
GeneralRe: find string from file Pin
redeemer4-Jul-02 11:39
redeemer4-Jul-02 11:39 
GeneralSimeple MFC Question Pin
4-Jul-02 8:08
suss4-Jul-02 8:08 
This is probably really simple but I cant think how to do it.

I have a dialog which contains a CRichEditCtrl derived member. In the Onkeydown of the edit control I check for F9 which works fine. I want to at this stage update a member of the edit control to contain the value, and inform the parent to ask.

this is really difficult because the child doesnt contain a reference to its parent??? Also what is the damn menthod I call from within the rich edit control to find out the current text?!!!

An example in case i havent explained well:

CMyRichEd::OnKeyDown( char bla bla )
{
if( nchar == vk_f9 ) {
m_PersonsName = // Get contents of text box

// Alert parent somehow to call CMyRichEd::GetPersonsName()
}
}

Any help would be v much appreciated!

Thanks
GeneralRe: Simeple MFC Question Pin
Joaquín M López Muñoz4-Jul-02 8:59
Joaquín M López Muñoz4-Jul-02 8:59 
GeneralParsing email Pin
Steven Gregg4-Jul-02 7:05
Steven Gregg4-Jul-02 7:05 
Questioncreating a directory. MkDir?? Pin
Kuniva4-Jul-02 5:48
Kuniva4-Jul-02 5:48 
AnswerRe: creating a directory. MkDir?? Pin
Chris Losinger4-Jul-02 5:58
professionalChris Losinger4-Jul-02 5:58 
AnswerRe: creating a directory. MkDir?? Pin
Martin Ziacek4-Jul-02 5:59
Martin Ziacek4-Jul-02 5:59 
GeneralVC++ 6 or VC.NET Pin
Asim Hussain4-Jul-02 5:15
Asim Hussain4-Jul-02 5:15 
GeneralRe: VC++ 6 or VC.NET Pin
Michael P Butler4-Jul-02 5:21
Michael P Butler4-Jul-02 5:21 
GeneralRe: VC++ 6 or VC.NET Pin
Chris Losinger4-Jul-02 6:00
professionalChris Losinger4-Jul-02 6:00 
GeneralStay away from VC.net Pin
Abin4-Jul-02 15:08
Abin4-Jul-02 15:08 
Generalprinting pdf's Pin
Bernhard4-Jul-02 4:54
Bernhard4-Jul-02 4:54 
GeneralRe: printing pdf's Pin
Roger Allen4-Jul-02 5:50
Roger Allen4-Jul-02 5:50 
GeneralMenubar... Pin
4-Jul-02 4:42
suss4-Jul-02 4:42 
GeneralDialog based appication and MDI insert roblem Pin
chen4-Jul-02 3:57
chen4-Jul-02 3:57 
Questionhow to change a CDialogBar caption ? Pin
bisserke4-Jul-02 3:55
bisserke4-Jul-02 3:55 
AnswerRe: how to change a CDialogBar caption ? Pin
Joaquín M López Muñoz4-Jul-02 8:56
Joaquín M López Muñoz4-Jul-02 8:56 
GeneralDefining World, Projection and View Matrices Pin
Alan Chambers4-Jul-02 2:50
Alan Chambers4-Jul-02 2:50 
GeneralDecode AOL's .art image format Pin
4-Jul-02 2:48
suss4-Jul-02 2:48 

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.