Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Save desktop's image Pin
David Crow19-May-03 5:13
David Crow19-May-03 5:13 
GeneralRe: Save desktop's image Pin
Chintan19-May-03 19:34
Chintan19-May-03 19:34 
GeneralProblem with killing a process Pin
zakarias19-May-03 3:23
zakarias19-May-03 3:23 
GeneralRe: Problem with killing a process Pin
Martyn Pearson19-May-03 3:58
Martyn Pearson19-May-03 3:58 
GeneralRe: Problem with killing a process Pin
zakarias23-May-03 5:43
zakarias23-May-03 5:43 
Generalproblem setting text in edit box Pin
r i s h a b h s19-May-03 3:19
r i s h a b h s19-May-03 3:19 
GeneralRe: problem setting text in edit box Pin
NHM19-May-03 3:29
NHM19-May-03 3:29 
GeneralRe: problem setting text in edit box Pin
Cedric Moonen19-May-03 3:29
Cedric Moonen19-May-03 3:29 
You have to make your own class derived from CDialog: when you have your resource editor open, open classWizzard and it will says that IDD_SHOW is a new resource and if you want to create a new class for it. Say yes and specify your class name (CMyDialog for example).

Click on the member variable tab and add a member variable for your edit box (IDC_E_DATA) of type CString (says m_MyString).

Then you have to add a public member function within your class to set the string:
CMyDialog::SetStringData(CString NewString)
{
   m_MyString = NewString;
}


Then, in your OnInitDialog function, call UpdateData(FALSE);

Thats it, hope this helps
Cédric Moonen
GeneralRe: problem setting text in edit box Pin
Joan M19-May-03 3:32
professionalJoan M19-May-03 3:32 
GeneralRe: problem setting text in edit box Pin
User 665819-May-03 4:32
User 665819-May-03 4:32 
GeneralRe: problem setting text in edit box Pin
balcn19-May-03 7:22
balcn19-May-03 7:22 
General"Handle" required Pin
wavewave19-May-03 2:13
wavewave19-May-03 2:13 
GeneralRe: "Handle" required Pin
Jeremy Falcon19-May-03 5:03
professionalJeremy Falcon19-May-03 5:03 
GeneralRe: "Handle" required Pin
wavewave19-May-03 18:16
wavewave19-May-03 18:16 
GeneralRe: "Handle" required Pin
Jeremy Falcon20-May-03 3:21
professionalJeremy Falcon20-May-03 3:21 
GeneralShow "Color" Pin
wavewave19-May-03 2:11
wavewave19-May-03 2:11 
GeneralRe: Show "Color" Pin
David Crow19-May-03 2:12
David Crow19-May-03 2:12 
GeneralRe: Show "Color" Pin
wavewave19-May-03 2:26
wavewave19-May-03 2:26 
GeneralRe: Show "Color" Pin
Jeremy Falcon19-May-03 7:48
professionalJeremy Falcon19-May-03 7:48 
GeneralRe: Show "Color" Pin
John R. Shaw19-May-03 18:19
John R. Shaw19-May-03 18:19 
GeneralRe: Show "Color" Pin
wavewave19-May-03 20:14
wavewave19-May-03 20:14 
GeneralRe: Show "Color" Pin
John R. Shaw20-May-03 9:42
John R. Shaw20-May-03 9:42 
Questionhow to draw a monochrome bitmap Pin
Anonymous19-May-03 1:53
Anonymous19-May-03 1:53 
GeneralAbout the size of CString Pin
Drawil19-May-03 1:33
Drawil19-May-03 1:33 
GeneralRe: About the size of CString Pin
David Crow19-May-03 2:14
David Crow19-May-03 2:14 

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.