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

C / C++ / MFC

 
GeneralRe: Braces required? Pin
Jamie Hale9-Jul-03 10:13
Jamie Hale9-Jul-03 10:13 
GeneralRe: Braces required? Pin
Haakon S.9-Jul-03 11:18
Haakon S.9-Jul-03 11:18 
Generalvisual studio 2003 + crtdbg.h Pin
dTCrash9-Jul-03 4:50
dTCrash9-Jul-03 4:50 
GeneralRe: visual studio 2003 + crtdbg.h Pin
keegan9-Jul-03 4:58
keegan9-Jul-03 4:58 
Generalit's working, thx Pin
dTCrash9-Jul-03 6:22
dTCrash9-Jul-03 6:22 
GeneralRe: visual studio 2003 + crtdbg.h Pin
Mike Dimmick9-Jul-03 6:26
Mike Dimmick9-Jul-03 6:26 
GeneralRefreshing a listBox when a page is setactive Pin
keegan9-Jul-03 4:43
keegan9-Jul-03 4:43 
GeneralRe: Refreshing a listBox when a page is setactive Pin
David Crow9-Jul-03 4:59
David Crow9-Jul-03 4:59 
keegan wrote:
WHen the user hits ok, the stringname is stored and added to the contents of the lisbox. However, when the user hits ok, the main page (with the listbox) is now in focus, and the contents of the listbox have not been updated.

These two seem contradictory.

You have a property page (which is derived from a dialog) that has a listbox and an Add button on it. When the Add button is clicked, a (modal) dialog is displayed where text can be entered. When that dialog is dismissed, the text that was entered is added to the listbox. Yes? You should have code something like:

void CMyPropertyPage::OnClickAdd()
{
    CMyDialog dlg;

    if (dlg.DoModal() == IDOK)
        m_listbox.AddString(dlg.m_strText);
}


Otherwise, I'm not understanding your question.
GeneralRe: Refreshing a listBox when a page is setactive Pin
keegan9-Jul-03 5:10
keegan9-Jul-03 5:10 
GeneralRe: Refreshing a listBox when a page is setactive Pin
David Crow9-Jul-03 5:49
David Crow9-Jul-03 5:49 
Generaldisplaying a jpg Pin
Tom Wright9-Jul-03 4:31
Tom Wright9-Jul-03 4:31 
GeneralRe: displaying a jpg Pin
John M. Drescher9-Jul-03 4:41
John M. Drescher9-Jul-03 4:41 
GeneralRe: displaying a jpg Pin
Ryan Binns9-Jul-03 4:59
Ryan Binns9-Jul-03 4:59 
GeneralRe: displaying a jpg Pin
PJ Arends9-Jul-03 11:25
professionalPJ Arends9-Jul-03 11:25 
GeneralReading very large files > 32G Pin
rdh9-Jul-03 4:23
rdh9-Jul-03 4:23 
GeneralRe: Reading very large files > 32G Pin
John M. Drescher9-Jul-03 4:30
John M. Drescher9-Jul-03 4:30 
GeneralRe: Reading very large files > 32G Pin
David Crow9-Jul-03 4:47
David Crow9-Jul-03 4:47 
QuestionWriting the actual addresses of a struct in memory??? Pin
johnstonsk9-Jul-03 4:22
johnstonsk9-Jul-03 4:22 
AnswerRe: Writing the actual addresses of a struct in memory??? Pin
John M. Drescher9-Jul-03 4:35
John M. Drescher9-Jul-03 4:35 
Generaltype "double" question Pin
DaveE9th9-Jul-03 4:11
DaveE9th9-Jul-03 4:11 
GeneralRe: type "double" question Pin
BoudewijnEctor9-Jul-03 4:14
BoudewijnEctor9-Jul-03 4:14 
GeneralRe: type "double" question Pin
DaveE9th9-Jul-03 4:25
DaveE9th9-Jul-03 4:25 
GeneralRe: type "double" question Pin
Cedric Moonen9-Jul-03 4:30
Cedric Moonen9-Jul-03 4:30 
GeneralRe: type "double" question Pin
David Crow9-Jul-03 4:34
David Crow9-Jul-03 4:34 
GeneralRe: type "double" question Pin
keegan9-Jul-03 4:19
keegan9-Jul-03 4:19 

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.