Click here to Skip to main content
15,923,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Use text that a user input in an Edit Box in MFC Pin
reenacutie18-Feb-05 19:42
reenacutie18-Feb-05 19:42 
GeneralRe: Use text that a user input in an Edit Box in MFC Pin
ThatsAlok18-Feb-05 20:31
ThatsAlok18-Feb-05 20:31 
GeneralRe: Use text that a user input in an Edit Box in MFC Pin
Blake Miller22-Feb-05 6:56
Blake Miller22-Feb-05 6:56 
GeneralRe: Use text that a user input in an Edit Box in MFC Pin
22491718-Feb-05 19:23
22491718-Feb-05 19:23 
GeneralRe: Use text that a user input in an Edit Box in MFC Pin
reenacutie18-Feb-05 19:39
reenacutie18-Feb-05 19:39 
GeneralRe: Use text that a user input in an Edit Box in MFC Pin
22491718-Feb-05 20:14
22491718-Feb-05 20:14 
GeneralRe: Use text that a user input in an Edit Box in MFC Pin
Maximilien18-Feb-05 20:48
Maximilien18-Feb-05 20:48 
GeneralRe: Use text that a user input in an Edit Box in MFC Pin
jhwurmbach19-Feb-05 3:16
jhwurmbach19-Feb-05 3:16 
As Maximilien said, you give the GetWindowText() a String, and it will fill it for you.
As for getting the right variable to call GetWindowText() on, you can use the ClassWizard to make a so called Control Variable for you. Thats a variable of the Type of your control (probably CEdit) and you can use it without resorting to the complicated and confused UpdateWindow()-stuff.

You just need to set one hook in the Class Wizard.



"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

QuestionWhy doesn't this work? Pin
Zero_divide_118-Feb-05 18:36
Zero_divide_118-Feb-05 18:36 
AnswerRe: Why doesn't this work? Pin
22491718-Feb-05 20:10
22491718-Feb-05 20:10 
GeneralRe: Why doesn't this work? Pin
Zero_divide_119-Feb-05 9:48
Zero_divide_119-Feb-05 9:48 
Generalsystem() fails in service mode Pin
ace_maggot18-Feb-05 18:34
ace_maggot18-Feb-05 18:34 
GeneralRe: system() fails in service mode Pin
22491718-Feb-05 19:15
22491718-Feb-05 19:15 
Generalwininit.ini Pin
includeh1018-Feb-05 18:17
includeh1018-Feb-05 18:17 
GeneralRe: wininit.ini Pin
Michael Dunn18-Feb-05 19:17
sitebuilderMichael Dunn18-Feb-05 19:17 
GeneralRe: wininit.ini Pin
includeh1018-Feb-05 22:59
includeh1018-Feb-05 22:59 
Generaldelete a file Pin
includeh1018-Feb-05 17:47
includeh1018-Feb-05 17:47 
GeneralRe: delete a file Pin
22491718-Feb-05 17:55
22491718-Feb-05 17:55 
GeneralRe: delete a file Pin
ThatsAlok18-Feb-05 19:05
ThatsAlok18-Feb-05 19:05 
GeneralDetect Dlls dynamically and statically load it Pin
Member 174261018-Feb-05 16:56
Member 174261018-Feb-05 16:56 
GeneralRe: Detect Dlls dynamically and statically load it Pin
Andrew Walker18-Feb-05 17:22
Andrew Walker18-Feb-05 17:22 
Questionvector,list and dqueue ? Pin
xcavin18-Feb-05 16:35
xcavin18-Feb-05 16:35 
AnswerRe: vector,list and dqueue ? Pin
Andrew Walker18-Feb-05 17:26
Andrew Walker18-Feb-05 17:26 
GeneralStrFormatByteSize don't work...help Pin
baboguru18-Feb-05 16:07
baboguru18-Feb-05 16:07 
GeneralRe: StrFormatByteSize don't work...help Pin
Michael Dunn18-Feb-05 16:16
sitebuilderMichael Dunn18-Feb-05 16:16 

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.