Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PropertyPage, OnInitDialog, and SetFocus Pin
PJ Arends7-Jun-04 5:17
professionalPJ Arends7-Jun-04 5:17 
GeneralRe: PropertyPage, OnInitDialog, and SetFocus Pin
David Crow7-Jun-04 5:23
David Crow7-Jun-04 5:23 
GeneralRe: PropertyPage, OnInitDialog, and SetFocus Pin
PJ Arends7-Jun-04 6:37
professionalPJ Arends7-Jun-04 6:37 
GeneralRe: PropertyPage, OnInitDialog, and SetFocus Pin
David Crow7-Jun-04 7:05
David Crow7-Jun-04 7:05 
GeneralRe: PropertyPage, OnInitDialog, and SetFocus Pin
PJ Arends7-Jun-04 7:13
professionalPJ Arends7-Jun-04 7:13 
GeneralRe: PropertyPage, OnInitDialog, and SetFocus Pin
David Crow7-Jun-04 7:17
David Crow7-Jun-04 7:17 
GeneralButton... then Text here... Pin
Member 6226665-Jun-04 13:17
Member 6226665-Jun-04 13:17 
GeneralRe: Button... then Text here... Pin
bneacetp5-Jun-04 13:26
bneacetp5-Jun-04 13:26 
DarkRaven41 wrote:
Ok im going to sound like an idiot asking this... But im having trouble figuring this out.. I'm trying to get it when i click "Button A" It will some words in "Text Box A" Yea im a newb i look like a newb i feel like a newb! Just someone help me please!

Give control IDs to your button and edit box. Then handle the BN_CLICK event for your button and add a variable of the CString type to your edit box. Then in your button's BN_CLICK event handler function type something like (assuming "m_strText" is the name of the variable you added to your edit box):

m_strText = "Yea im a newb i look like a newb i feel like a newb!";
UpdateData(FALSE); // Update the UI.

That should do it. Good luck in your programming efforts! Big Grin | :-D

Happy Programming and God Bless!

Internet::WWW::CodeProject::bneacetp
GeneralRe: Button... then Text here... Pin
Member 6226665-Jun-04 13:42
Member 6226665-Jun-04 13:42 
GeneralRe: Button... then Text here... Pin
bneacetp5-Jun-04 14:06
bneacetp5-Jun-04 14:06 
GeneralRe: Button... then Text here... Pin
David Crow7-Jun-04 2:48
David Crow7-Jun-04 2:48 
GeneralOptional Parameter Pin
Jorgen E.5-Jun-04 12:35
Jorgen E.5-Jun-04 12:35 
GeneralRe: Optional Parameter Pin
kfaday5-Jun-04 13:16
kfaday5-Jun-04 13:16 
GeneralRe: Optional Parameter Pin
Michael Dunn5-Jun-04 13:21
sitebuilderMichael Dunn5-Jun-04 13:21 
GeneralRe: Optional Parameter Pin
Jorgen E.5-Jun-04 13:30
Jorgen E.5-Jun-04 13:30 
General/OPT:REF Pin
Archer2825-Jun-04 11:07
Archer2825-Jun-04 11:07 
GeneralRe: /OPT:REF Pin
cmk5-Jun-04 11:11
cmk5-Jun-04 11:11 
GeneralRe: /OPT:REF Pin
Joe Woodbury6-Jun-04 11:25
professionalJoe Woodbury6-Jun-04 11:25 
Generalconvert float to int without rounding Pin
Dev5785-Jun-04 10:32
Dev5785-Jun-04 10:32 
GeneralRe: convert float to int without rounding Pin
Tim Smith5-Jun-04 10:40
Tim Smith5-Jun-04 10:40 
GeneralRe: convert float to int without rounding Pin
PJ Arends5-Jun-04 11:08
professionalPJ Arends5-Jun-04 11:08 
GeneralRe: convert float to int without rounding Pin
Gary R. Wheeler6-Jun-04 3:52
Gary R. Wheeler6-Jun-04 3:52 
GeneralRe: convert float to int without rounding Pin
Gary R. Wheeler6-Jun-04 3:57
Gary R. Wheeler6-Jun-04 3:57 
GeneralEnumWindows Pin
Archer2825-Jun-04 9:49
Archer2825-Jun-04 9:49 
GeneralRe: EnumWindows Pin
peterchen5-Jun-04 10:30
peterchen5-Jun-04 10:30 

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.