⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_55156.htm

📁 vc
💻 HTM
字号:
<p>
序号:55156 发表者:莹莹菜 发表日期:2003-10-07 11:14:45
<br>主题:学习VC整整3星期了,苦闷啊!!!
<br>内容:书上说是相当容易的问题,可是我还不知道怎么回事呀!!!苦闷啊!!!<BR>void CMainFrame::OnSelChangeWidth()<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;// Get the new combo selection<BR>&nbsp;&nbsp;&nbsp;&nbsp;int nIndex = m_ctlWidth.GetCurSel();<BR>&nbsp;&nbsp;&nbsp;&nbsp;if (nIndex == CB_ERR)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;// Get the active document<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;big&gt;CToolbarDoc* pDoc = (CToolbarDoc*)GetActiveDocument();&lt;/big&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;// Do we have a valid document?<BR>&nbsp;&nbsp;&nbsp;&nbsp;if (pDoc)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Set the new drawing width<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pDoc-&gt;SetWidth(nIndex);<BR>}<BR><BR>E:\VC\Toolbar\MainFrm.cpp(344) : error C2065: 'CToolbarDoc' : undeclared identifier<BR>E:\VC\Toolbar\MainFrm.cpp(344) : error C2065: 'pDoc' : undeclared identifier<BR>E:\VC\Toolbar\MainFrm.cpp(344) : error C2059: syntax error : ')'<BR>E:\VC\Toolbar\MainFrm.cpp(348) : error C2227: left of '-&gt;SetWidth' must point to class/struct/union<BR><BR><BR><BR>2003-10-7 11:16:36

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -