Click here to Skip to main content
15,876,639 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan I use the DECLARE_DYNAMIC macro for a CList derived class? Pin
Charles Liu30-Jun-03 2:46
Charles Liu30-Jun-03 2:46 
AnswerRe: Can I use the DECLARE_DYNAMIC macro for a CList derived class? Pin
Ryan Binns30-Jun-03 3:24
Ryan Binns30-Jun-03 3:24 
Generalread data from digital camera Pin
includeh1030-Jun-03 2:39
includeh1030-Jun-03 2:39 
GeneralRe: read data from digital camera Pin
basementman30-Jun-03 4:39
basementman30-Jun-03 4:39 
GeneralSerial Comms TimeOut Formula Pin
louis30-Jun-03 2:27
louis30-Jun-03 2:27 
GeneralRe: Serial Comms TimeOut Formula Pin
louis30-Jun-03 3:26
louis30-Jun-03 3:26 
GeneralMFC Edit Ctrl Pin
frackasse30-Jun-03 2:24
frackasse30-Jun-03 2:24 
GeneralRe: MFC Edit Ctrl Pin
David Crow30-Jun-03 2:40
David Crow30-Jun-03 2:40 
I'm guessing that you are calling SetCurSel() in the dialog's OnInitDialog() method. Add a variable m_bInitializing of type bool to your dialog class and set it to false in the constructor. At the beginning of OnInitDialog(), set it to true, and at the end of OnInitDialog(), right before the return statement, set it to false.

void CDialogBoxClass::OnSelchangeComboEvent() 
{
    CString str;

    if (! m_bInitializing)
    {
        m_comboctrl.GetWindowText(str);
        if ("dog" == str)
            m_editctrl.EnableWindow(FALSE);
        else
            m_editctrl.EnableWindow(TRUE);
    }
}

GeneralRe: MFC Edit Ctrl Pin
frackasse30-Jun-03 3:04
frackasse30-Jun-03 3:04 
GeneralRe: MFC Edit Ctrl Pin
David Crow30-Jun-03 3:22
David Crow30-Jun-03 3:22 
General,Serial Comms TimeOut Formula Pin
louis30-Jun-03 2:23
louis30-Jun-03 2:23 
QuestionHow to covert CString to TCHAR and CString to LPCWSTR? Pin
julych30-Jun-03 1:26
julych30-Jun-03 1:26 
AnswerRe: How to covert CString to TCHAR and CString to LPCWSTR? Pin
RChin30-Jun-03 1:39
RChin30-Jun-03 1:39 
AnswerRe: How to covert CString to TCHAR and CString to LPCWSTR? Pin
Peter Weyzen30-Jun-03 8:45
Peter Weyzen30-Jun-03 8:45 
Generalpointer to the app Pin
andyg.10130-Jun-03 1:16
andyg.10130-Jun-03 1:16 
GeneralRe: pointer to the app Pin
RChin30-Jun-03 1:43
RChin30-Jun-03 1:43 
GeneralRe: pointer to the app Pin
andyg.10130-Jun-03 2:21
andyg.10130-Jun-03 2:21 
GeneralRe: pointer to the app Pin
David Crow30-Jun-03 2:43
David Crow30-Jun-03 2:43 
GeneralRe: pointer to the app Pin
RChin30-Jun-03 3:23
RChin30-Jun-03 3:23 
GeneralVisual Studio 6.0 Pin
Bernhard30-Jun-03 1:13
Bernhard30-Jun-03 1:13 
GeneralRe: Visual Studio 6.0 Pin
Ryan Binns30-Jun-03 2:27
Ryan Binns30-Jun-03 2:27 
GeneralGot problems with COptionTree Pin
mike :D30-Jun-03 0:16
mike :D30-Jun-03 0:16 
GeneralRe: Got problems with COptionTree Pin
Dominik Reichl30-Jun-03 0:41
Dominik Reichl30-Jun-03 0:41 
GeneralRe: Got problems with COptionTree Pin
mike :D30-Jun-03 2:00
mike :D30-Jun-03 2:00 
GeneralRe: Got problems with COptionTree Pin
mike :D30-Jun-03 4:01
mike :D30-Jun-03 4:01 

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.