没人能回答吗?天啊!
1:在书上看到个例子,是定义一个类,用dynamic-subclassing技术连接到ID为IDC_EDIT1的Edit Box:
void CUpperEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
if (islower(nChar)) {
nChar = toupper(nChar);
}
DefWindowProc(WM_CHAR, (WPARAM) nChar, //这个函数有什么用?
(LPARAM) (nRepCnt | (nFlags << 16))); //参数怎么如此奇怪?把nFlags << 16有什么意义?
}
2:我定义typedef是出错,不知为什么:
typedef CTypedPtrList<COblist, CStation*> StationList;
错误信息为:error C2143: syntax error : missing ';' before '<'
3:写好SDI应用程序后,运行时左上方的那个MFC预设图标以及“无标题”三个字怎样更改?
4:在资源中加入了图标位图等,怎样删除它们?