Click here to Skip to main content
15,904,415 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalsoftware protection Pin
includeh1018-Jan-05 4:17
includeh1018-Jan-05 4:17 
GeneralRe: software protection Pin
Tom Wright18-Jan-05 7:22
Tom Wright18-Jan-05 7:22 
GeneralRe: software protection Pin
includeh1018-Jan-05 18:38
includeh1018-Jan-05 18:38 
GeneralHyperlinks into afxcore.rtf Pin
José Luis Sogorb18-Jan-05 4:10
José Luis Sogorb18-Jan-05 4:10 
GeneralMFC manipulating data Pin
hugPW18-Jan-05 1:33
hugPW18-Jan-05 1:33 
GeneralRe: MFC manipulating data Pin
Selvam R18-Jan-05 2:28
professionalSelvam R18-Jan-05 2:28 
GeneralRe: MFC manipulating data Pin
hugPW18-Jan-05 3:46
hugPW18-Jan-05 3:46 
GeneralRe: MFC manipulating data Pin
David Crow18-Jan-05 4:13
David Crow18-Jan-05 4:13 
While the task is easy enough to do, I certainly would not have chosen it for my first MFC project.

I presume you have created an SDI application (using AppWizard). If so, I would derive the view from CEditView. In the handler funtion for the button, call GetEditCtrl() to get a reference to the edit control used by the view. You can then call CEdit::GetWindowText() to get the text currently displayed in the edit control. Use the function _strrev() to reverse the text. Call CEdit::SetWindowText() to write the new text. Call GetDocument()->SetModifiedFlag(TRUE) to let the document know that the text has been changed. Upon exiting, the framework should prompt you to save the changed file.


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralRe: MFC manipulating data Pin
hugPW18-Jan-05 5:19
hugPW18-Jan-05 5:19 
GeneralRe: MFC manipulating data Pin
hugPW18-Jan-05 6:05
hugPW18-Jan-05 6:05 
GeneralRe: MFC manipulating data Pin
David Crow18-Jan-05 6:12
David Crow18-Jan-05 6:12 
GeneralRe: MFC manipulating data Pin
hugPW18-Jan-05 6:32
hugPW18-Jan-05 6:32 
GeneralRe: MFC manipulating data Pin
David Crow18-Jan-05 7:04
David Crow18-Jan-05 7:04 
GeneralRe: MFC manipulating data Pin
hugPW18-Jan-05 7:39
hugPW18-Jan-05 7:39 
GeneralDisable/Enable OK button in a property sheet Pin
Rajesh_K_Sharma18-Jan-05 1:01
Rajesh_K_Sharma18-Jan-05 1:01 
GeneralRe: Disable/Enable OK button in a property sheet Pin
Selvam R18-Jan-05 2:15
professionalSelvam R18-Jan-05 2:15 
Generalusing CDHtmlDialog for 2 html files Pin
lirik17-Jan-05 23:52
lirik17-Jan-05 23:52 
GeneralI have a Serious Problem Pin
pubududilena17-Jan-05 22:57
pubududilena17-Jan-05 22:57 
GeneralRe: I have a Serious Problem Pin
David Crow18-Jan-05 4:17
David Crow18-Jan-05 4:17 
GeneralRe: I have a Serious Problem Pin
Blake Miller18-Jan-05 4:41
Blake Miller18-Jan-05 4:41 
GeneralRe: I have a Serious Problem Pin
pubududilena18-Jan-05 15:14
pubududilena18-Jan-05 15:14 
GeneralRe: I have a Serious Problem Pin
Blake Miller19-Jan-05 4:13
Blake Miller19-Jan-05 4:13 
GeneralRe: I have a Serious Problem Pin
pubududilena19-Jan-05 21:06
pubududilena19-Jan-05 21:06 
GeneralAnother question to threads Pin
doneirik17-Jan-05 22:49
doneirik17-Jan-05 22:49 
GeneralRe: Another question to threads Pin
Antony M Kancidrowski18-Jan-05 2:34
Antony M Kancidrowski18-Jan-05 2:34 

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.