Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在尝试使用为现有组合框(IDC_COMBO)分配的 ID 设置 CComboBox*。
我已经尝试过 CWnd 的 GetDlgItem() 和 ID 分配,但我还想不通。
我知道这不完全是预期的细节,但这是我能给你的全部。
这是你想要的吗?
CComboBox* pCombo = reinterpret_cast<CComboBox*>(GetDlgItem (IDC_COMBO));