Click here to Skip to main content
16,006,605 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with custom tool box (dialog box) needed Pin
GDavy19-Jul-05 23:33
GDavy19-Jul-05 23:33 
GeneralRe: Help with custom tool box (dialog box) needed Pin
TEOlivier20-Jul-05 9:38
TEOlivier20-Jul-05 9:38 
GeneralString Table Pin
szeszike19-Jul-05 21:06
szeszike19-Jul-05 21:06 
GeneralRe: String Table Pin
khan++19-Jul-05 21:12
khan++19-Jul-05 21:12 
GeneralRe: String Table Pin
David Crow20-Jul-05 3:01
David Crow20-Jul-05 3:01 
GeneralInputBox... Pin
Raza568019-Jul-05 20:55
Raza568019-Jul-05 20:55 
GeneralRe: InputBox... Pin
Marc Soleda19-Jul-05 21:00
Marc Soleda19-Jul-05 21:00 
GeneralRe: InputBox... Pin
khan++19-Jul-05 21:09
khan++19-Jul-05 21:09 
Add a dialog box to the resources. Attach a class to it. Make an edit box on the dialog. Attach a CString type variable to it. Then call it using DoModal(), check the return value. If it is IDOK, then get the CString variable from the dialog box variable.
CInputBox dlg;
if (dlg.DoModal() == IDOK)
{
CString s;
s = dlg.m_strText;
}
If you want to show a prompt also, then make a public CString m_strTitle; in the dialog class. In its OnInitDialog(), Use SetWindowText(m_strTitle) to set the title. Before calling DoModal(), set that CString variable to anything you want.


this is this.
GeneralRe: InputBox... Pin
toxcct19-Jul-05 22:33
toxcct19-Jul-05 22:33 
GeneralRe: InputBox... Pin
David Crow20-Jul-05 3:07
David Crow20-Jul-05 3:07 
General2D array for class pointers objects. Help! Pin
Member 341989119-Jul-05 20:50
Member 341989119-Jul-05 20:50 
GeneralRe: 2D array for class pointers objects. Help! Pin
toxcct19-Jul-05 22:40
toxcct19-Jul-05 22:40 
GeneralRe: 2D array for class pointers objects. Help! Pin
John R. Shaw20-Jul-05 9:24
John R. Shaw20-Jul-05 9:24 
GeneralGina Problem Pin
Anonymous19-Jul-05 20:50
Anonymous19-Jul-05 20:50 
GeneralChanging Picture Pin
Halawlaws19-Jul-05 20:26
Halawlaws19-Jul-05 20:26 
GeneralRe: Changing Picture Pin
toxcct19-Jul-05 22:44
toxcct19-Jul-05 22:44 
GeneralRe: Changing Picture Pin
David Crow20-Jul-05 3:16
David Crow20-Jul-05 3:16 
GeneralRe: Changing Picture Pin
Halawlaws20-Jul-05 3:17
Halawlaws20-Jul-05 3:17 
Generalloading bitmaps from List Box Pin
a_david12319-Jul-05 19:28
a_david12319-Jul-05 19:28 
GeneralRe: loading bitmaps from List Box Pin
David Crow20-Jul-05 3:11
David Crow20-Jul-05 3:11 
GeneralOpen Files Pin
Anonymous19-Jul-05 19:09
Anonymous19-Jul-05 19:09 
GeneralRe: Open Files Pin
22491719-Jul-05 19:57
22491719-Jul-05 19:57 
GeneralConvert mm(millimeter) into pixels for use with TextOut Pin
wasife19-Jul-05 19:09
wasife19-Jul-05 19:09 
GeneralRe: Convert mm(millimeter) into pixels for use with TextOut Pin
Marc Soleda19-Jul-05 20:10
Marc Soleda19-Jul-05 20:10 
GeneralRe: Convert mm(millimeter) into pixels for use with TextOut Pin
RicoH20-Jul-05 0:42
RicoH20-Jul-05 0:42 

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.