我继承了EDIT类,自己写了一个编辑框,想让这个编辑框没有边框。
下面是我的代码:
void CNameEdit_::PreSubclassWindow()
{
// TODO: 在此添加专用代码和/或调用基类
long l_UserStyle=::GetWindowLong(this->m_hWnd,GWL_STYLE); l_UserStyle|=~WS_BORDER; ::SetWindowLong(this->m_hWnd,GWL_STYLE,l_UserStyle); CEdit::PreSubclassWindow();
}
这样没反映求解,请用上面的方法来达到我的效果,当然也可以说一下其它方法
下面是我的代码:
void CNameEdit_::PreSubclassWindow()
{
// TODO: 在此添加专用代码和/或调用基类
long l_UserStyle=::GetWindowLong(this->m_hWnd,GWL_STYLE); l_UserStyle|=~WS_BORDER; ::SetWindowLong(this->m_hWnd,GWL_STYLE,l_UserStyle); CEdit::PreSubclassWindow();
}
这样没反映求解,请用上面的方法来达到我的效果,当然也可以说一下其它方法
解决方案 »
- CSpreadSheet类 Commit 函数返回 false 问题
- 一维彩色图像如何进行颜色边缘检测
- 毕业一年,离职散分。。。
- 谁能给我解释一下打印机的逻辑坐标和物理坐标是什么意思?它们的关系是什么以及如何转化?
- 高分请问做网络编程的待遇是不是很底
- 一个关于mfc和api 绘图工具的疑问……要不要deleteObject()呢?
- 关于加密解密的小问题?
- 如何用类似于Ping的方法检查某一程序是否处于“程序忙”的状态?
- 有关timeSetEvent()回调函数的问题?
- 紧急求救,如何从windows 2000 server中找回被工作站删除的文件?在线等待
- 单文档如何在CFormView中创建属性页?
- CButtonST显示问题
has no effect, hence the ModifyStyleEx will probably do nothing. You need to use the
CreateEx method (which is what Create actually calls, with a 0 for the EX-styles) and pass
the parameter in at creation time.