Click here to Skip to main content
15,917,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MACROS. Pin
Larry Antram6-Aug-03 10:53
Larry Antram6-Aug-03 10:53 
GeneralRe: MACROS. Pin
WREY6-Aug-03 12:01
WREY6-Aug-03 12:01 
GeneralProblem with Passing ofstream to DLL Pin
DionChen6-Aug-03 8:04
DionChen6-Aug-03 8:04 
QuestionHow to use SetWindowSubclass Pin
krosswindz6-Aug-03 7:50
krosswindz6-Aug-03 7:50 
GeneralBITMAP Structures Pin
colormyiris6-Aug-03 7:28
colormyiris6-Aug-03 7:28 
GeneralRe: BITMAP Structures Pin
David Crow6-Aug-03 7:33
David Crow6-Aug-03 7:33 
GeneralCFileDialog with custom activeX Pin
sdfdsfa6-Aug-03 7:22
sdfdsfa6-Aug-03 7:22 
GeneralEditbox and checkbox control questions Pin
Binayak6-Aug-03 7:14
Binayak6-Aug-03 7:14 
Hi,

I'm new to MFC, I have some questions about the controls. Please help.
1. If I try to use the variable name of any control, say an Edit box control (m_nEdit, of CString type),it doesn't work.
m_nEdit.Empty(); //doesn't empty the edit box
But, if I do the following it works.
CWnd* pWnd = GetDlgItem(IDC_EDITEdit); //IDC_EDITEdit being the control ID
pWnd->ShowWindow(SW_SHOW);
pWnd->SetWindowText("");

2. If the Editbox has integer, how to get the value of the integer?
pWnd = GetDlgItem(IDC_EDITInt);
pWnd->GetWindowText(cstInt); //gives error

Is there any way to get/set the value in the edit boxes using the variable name of that control?

3. Similar question about check boxes.
How do I get & set the values of the check boxes from my VC++ programs?

I knwo these are very basic stuff, but, please help.

Thanks,

Binayak Bhattacharyya
GeneralRe: Editbox and checkbox control questions Pin
Brian Delahunty6-Aug-03 7:22
Brian Delahunty6-Aug-03 7:22 
QuestionTree Control : How to get selected Item while Capturing single click event? Pin
Binayak6-Aug-03 6:08
Binayak6-Aug-03 6:08 
AnswerRe: Tree Control : How to get selected Item while Capturing single click event? Pin
Rage6-Aug-03 6:38
professionalRage6-Aug-03 6:38 
GeneralRe: Tree Control : How to get selected Item while Capturing single click event? Pin
Binayak6-Aug-03 6:53
Binayak6-Aug-03 6:53 
GeneralChallenge folks!!! This can't really be that hard!?!?? :( Pin
Tommy Svensson6-Aug-03 5:45
Tommy Svensson6-Aug-03 5:45 
GeneralRe: Challenge folks!!! This can't really be that hard!?!?? :( Pin
Michael Dunn6-Aug-03 7:41
sitebuilderMichael Dunn6-Aug-03 7:41 
GeneralRe: Challenge folks!!! This can't really be that hard!?!?? :( Pin
Tommy Svensson6-Aug-03 10:20
Tommy Svensson6-Aug-03 10:20 
GeneralRe: Challenge folks!!! This can't really be that hard!?!?? :( Pin
Tommy Svensson6-Aug-03 23:03
Tommy Svensson6-Aug-03 23:03 
General"ignore all default librairies" problem Pin
alfith6-Aug-03 5:34
alfith6-Aug-03 5:34 
Questionhow to display greek characters Pin
LESUR6-Aug-03 5:08
LESUR6-Aug-03 5:08 
GeneralAnsiString case statement Pin
chris sprague19776-Aug-03 4:39
chris sprague19776-Aug-03 4:39 
GeneralRe: AnsiString case statement Pin
David Crow6-Aug-03 7:32
David Crow6-Aug-03 7:32 
GeneralSTL string Pin
act_x6-Aug-03 4:35
act_x6-Aug-03 4:35 
GeneralRe: STL string Pin
Nathan Blomquist6-Aug-03 4:43
Nathan Blomquist6-Aug-03 4:43 
GeneralRe: STL string Pin
Nemanja Trifunovic6-Aug-03 5:02
Nemanja Trifunovic6-Aug-03 5:02 
GeneralRe: STL string Pin
Johann Gerell6-Aug-03 9:06
Johann Gerell6-Aug-03 9:06 
GeneralRe: STL string Pin
jhwurmbach6-Aug-03 22:16
jhwurmbach6-Aug-03 22: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.