Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Temperature Sensors Pin
567890123415-Dec-02 20:00
567890123415-Dec-02 20:00 
QuestionEasier Tab control? Pin
Mr.Freeze15-Dec-02 14:45
Mr.Freeze15-Dec-02 14:45 
Generalinteresting problem Pin
Sunnygirl15-Dec-02 14:04
Sunnygirl15-Dec-02 14:04 
GeneralRe: interesting problem Pin
Colin Urquhart15-Dec-02 14:48
Colin Urquhart15-Dec-02 14:48 
GeneralRe: interesting problem Pin
zarzor15-Dec-02 14:59
zarzor15-Dec-02 14:59 
GeneralRe: interesting problem Pin
kjessee15-Dec-02 15:01
kjessee15-Dec-02 15:01 
GeneralRe: interesting problem Pin
Sunnygirl15-Dec-02 21:11
Sunnygirl15-Dec-02 21:11 
GeneralRe: interesting problem Pin
Anonymous15-Dec-02 17:06
Anonymous15-Dec-02 17:06 
I would create the dialog in a thread, use a CStringArray for the contents of the combo box and create a function to refresh the combo.

_beginthread( ShowDialog, 0, ID_DIALOG_COMBO );

LRESULT ShowDialog( LPVOID pVoid )
{
CDialog Dlg;
Dlg.Create( pVoid );
Dlg.DoModal();
return TRUE;
}

or

CMyDialog* pDlg = new CMyDialog;
pDlg->... // initialize members
_beginthread( ShowDialog, 0, (void*)pDlg );

LRESULT ShowDialog( LPVOID pVoid )
{
CDialog* pDlg = (CDialog*)pVoid ;
pDlg->DoModal();
delete pDlg;
return TRUE;
}

The pointer method is preferable because you can store the pointer(s) and control the dialog using these pointers. Make a function to refresh your combo and call it through any initialized pointers. Maybe use a CPtrArray.
General'sqrt' : undeclared identifier Pin
rbc15-Dec-02 13:03
rbc15-Dec-02 13:03 
GeneralRe: 'sqrt' : undeclared identifier Pin
Christian Graus15-Dec-02 13:15
protectorChristian Graus15-Dec-02 13:15 
GeneralRe: 'sqrt' : undeclared identifier Pin
rbc15-Dec-02 13:23
rbc15-Dec-02 13:23 
GeneralRe: 'sqrt' : undeclared identifier Pin
kjessee15-Dec-02 13:45
kjessee15-Dec-02 13:45 
GeneralRe: 'sqrt' : undeclared identifier Pin
Ravi Bhavnani15-Dec-02 13:49
professionalRavi Bhavnani15-Dec-02 13:49 
GeneralRe: 'sqrt' : undeclared identifier Pin
Christian Graus15-Dec-02 14:51
protectorChristian Graus15-Dec-02 14:51 
GeneralRe: 'sqrt' : undeclared identifier Pin
rbc15-Dec-02 15:33
rbc15-Dec-02 15:33 
GeneralRe: 'sqrt' : undeclared identifier Pin
Christian Graus15-Dec-02 15:42
protectorChristian Graus15-Dec-02 15:42 
GeneralRe: 'sqrt' : undeclared identifier Pin
Nick Parker15-Dec-02 16:18
protectorNick Parker15-Dec-02 16:18 
GeneralRe: 'sqrt' : undeclared identifier Pin
rbc17-Dec-02 17:11
rbc17-Dec-02 17:11 
Generalsetting the behavior of the context popup menu Pin
trustno115-Dec-02 11:04
trustno115-Dec-02 11:04 
GeneralRe: setting the behavior of the context popup menu Pin
Joseph Dempsey15-Dec-02 11:42
Joseph Dempsey15-Dec-02 11:42 
GeneralGetMailslotInfo returns incorrect lpMessageCount Pin
mwilliamson15-Dec-02 10:48
mwilliamson15-Dec-02 10:48 
GeneralRe: GetMailslotInfo returns incorrect lpMessageCount Pin
Joel Lucsy16-Dec-02 5:19
Joel Lucsy16-Dec-02 5:19 
QuestionHow do I set the Height and Length of a View? Pin
Anonymous15-Dec-02 10:13
Anonymous15-Dec-02 10:13 
AnswerRe: How do I set the Height and Length of a View? Pin
Anonymous15-Dec-02 10:17
Anonymous15-Dec-02 10:17 
Questionprocess and network path? Pin
imran_rafique15-Dec-02 10:03
imran_rafique15-Dec-02 10:03 

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.