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.
我的窗口中有一个组合框;而且我能够完美地向组合框添加元素但是当我尝试删除一个或所有项目时,没有项目被删除。根据 Spy++ 消息 WM_DELETEITEM 发送但是组合框没有收到消息。
您不会发送WM_DELETEITEM删除项目,一旦控件完成删除项目,它就会发送回给您。改为使用CB_DELETESTRING。
WM_DELETEITEM
CB_DELETESTRING