mfc edit box
-
hi! i am working on an MFC SDI Application. I have an EditBox on a dialog for dispalying path of files. I hav also used a Button for browsing files. My Browse button is working , but, i also want that "the path of the file can be entered directly into the edit box." How to do it? But, I had not used EditBox earlier as i am new to mfc programming. can anybody help me at this issue. Thanx for providing me help
-
hi! i am working on an MFC SDI Application. I have an EditBox on a dialog for dispalying path of files. I hav also used a Button for browsing files. My Browse button is working , but, i also want that "the path of the file can be entered directly into the edit box." How to do it? But, I had not used EditBox earlier as i am new to mfc programming. can anybody help me at this issue. Thanx for providing me help
use
CWnd::SetWindowText(CString)
for this:((CEdit*)GetDlgItem(IDC_MY_EDIT))->SetWindowText(strFileName);
((CEdit*)GetDlgItem(IDC_MY_EDIT))->GetWindowText(strFileName);
orm_MyEdit.SetWindowText(strFileName);
m_MyEdit.GetWindowText(strFileName);
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
hi! i am working on an MFC SDI Application. I have an EditBox on a dialog for dispalying path of files. I hav also used a Button for browsing files. My Browse button is working , but, i also want that "the path of the file can be entered directly into the edit box." How to do it? But, I had not used EditBox earlier as i am new to mfc programming. can anybody help me at this issue. Thanx for providing me help
-
hi! i am working on an MFC SDI Application. I have an EditBox on a dialog for dispalying path of files. I hav also used a Button for browsing files. My Browse button is working , but, i also want that "the path of the file can be entered directly into the edit box." How to do it? But, I had not used EditBox earlier as i am new to mfc programming. can anybody help me at this issue. Thanx for providing me help
swaapu wrote: But, I had not used EditBox earlier as i am new to mfc programming. can anybody help me at this issue. Thanx for providing me help
Using ClassWizard(Ctrl + W ) associate a CString Variable with the Edit Box.. When ever you need the value from the Edit Box
From Edit Box
UpdateData(TRUE
);
MessageBox( m_strEditBox,"Data in Edit Box");TO Edit Box
m_strEditBox="codeproject";
UpdateData(FALSE
);"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV