
help: basic stupid questions, please help tho
Quote:
>hello, 2 questions,
>1. i made a little dialogue based
MFC app, it has a button and textin
>field reserved (by me) for file in, how do i make it so pressing the
>browse button will open a browse window, and allow the user to select a
>file, and the filename will be displayed in the edit box
You need to declare a variable for your button (via classwizard, of
category "control" rather than "value") then handle the button clicked
event. In your handler, use a CFileDialog to get the file name.
Quote:
>2. how do i take the values in edit boxes, and store them in a CString
>variable?
Simplest method: use classwizard to declare a variable of category
"Value" & type "CString". When the dialog closes, the value is placed
in the variable.
Harder method: use GetWindowText().
HTH
Paul.
-------------------------------------------
Expressed opinions are usually my own.
Especially if they're any good (of course).
-------------------------------------------