16,547
社区成员




int CColorEdit::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CEdit::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
DWORD Style = GetWindowLong(CEdit::m_hWnd, GWL_STYLE);
SetWindowLong(CEdit::m_hWnd, GWL_STYLE, Style);
return 0;
}
这样就可以,在属性面板里面设这好属性就可以了,类似VS2010了。
void CEditScreenDlg::OnButton1()
{
// TODO: Add your control notification handler code here
CString str = "1234567890一二三四五六七八九十1234567890一二三四五六七八九十1234567890一二三四五六七八九十1234567890一二三四五六七八九十1234567890一二三四五六七八九十1234567890";
DWORD Style = GetWindowLong(m_edt1.m_hWnd,GWL_STYLE);
SetWindowLong(m_edt1.m_hWnd, GWL_STYLE, Style);
m_edt1.SetWindowText(str);
}