📄 subject_55156.htm
字号:
<p>
序号:55156 发表者:莹莹菜 发表日期:2003-10-07 11:14:45
<br>主题:学习VC整整3星期了,苦闷啊!!!
<br>内容:书上说是相当容易的问题,可是我还不知道怎么回事呀!!!苦闷啊!!!<BR>void CMainFrame::OnSelChangeWidth()<BR>{<BR> // Get the new combo selection<BR> int nIndex = m_ctlWidth.GetCurSel();<BR> if (nIndex == CB_ERR)<BR> return;<BR><BR> // Get the active document<BR> <big>CToolbarDoc* pDoc = (CToolbarDoc*)GetActiveDocument();</big><BR> // Do we have a valid document?<BR> if (pDoc)<BR> // Set the new drawing width<BR> pDoc->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 '->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 + -