MFC Controls Disappearing RRS feed

  • Question

  • I have a problem. If I try to Create a MFC control outside the OnCreate method for my application, all the other controls disappear. Can this be explained? How can I Create a control without all other ones disappearing? 

    The line of code which make all other controls disappear is : 

    m_TriggerType->Create(WS_CHILD|WS_VISIBLE|WS_TABSTOP|CBS_DROPDOWNLIST|WS_VSCROLL, CRect(120, 270, 220, 370), this, IDCB_TRIGGER_TYPE);

    I have noticed that it is specifically the WS_VISIBLE trait that causes all the controls to disappear. (Also, m_TriggerType is of type *CComboBox). 

    Tuesday, July 31, 2012 2:05 PM


  • This is a forum for desktop standalone edition of Project. Pls try the forum "Where is the Forum For…?" here at to find the proper one.

    • Marked as answer by agrimball Tuesday, July 31, 2012 2:38 PM
    Tuesday, July 31, 2012 2:37 PM