标题:请教各位高手!
只看楼主
tangxixi2005
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-6-25
 问题点数:0 回复次数:0 
请教各位高手!

我想在菜单栏最后一个按钮上加列表选择框,加了一段 CRect rect; m_wndToolBar.SetButtonInfo(11, ID_BTN_COMBOBOX, TBBS_SEPARATOR, 120) ; m_wndToolBar.GetItemRect(11, &rect); rect.bottom += 100;

if ( ! m_ComboBox.Create(CBS_DROPDOWNLIST | WS_VISIBLE | WS_TABSTOP | CBS_AUTOHSCROLL, rect, &m_wndToolBar, IDC_TOOL_COMBOBOX) ) return -1 ; m_ComboBox.InitStorage(2, 10 ); m_ComboBox.AddString("深度优先"); m_ComboBox.AddString("广度优先"); m_ComboBox.AddString("A启发式搜索"); m_ComboBox.SetCurSel(0); vc++编译的时候总出现

error C2065: 'IDC_TOOL_COMBOBOX' : undeclared identifier这样的错误,我检查程序没错,别人和我一样的程序都运行通过了,我该怎么解决这个问题?

搜索更多相关主题的帖子: ComboBox rect CBS 
2005-06-26 09:36



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-21615-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.591134 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved