Quantcast
Channel: FiveTech Software tech support forums
Viewing all articles
Browse latest Browse all 26233

align get

$
0
0
See this: [url:21akepaa]https://blogs.msdn.microsoft.com/oldnewthing/20090525-00/?p=18173/[/url:21akepaa] [quote:21akepaa]you can indeed change the alignement of an edit control at runtime. It works, therefore this blog entry is wrong.————————————– I wrote an MFC dialog with two buttons to modify the style of the edit control. here are the message handlers: void CTestEditDlg::OnBnClickedButton1() { m_TestEdit.ModifyStyle( ES_RIGHT, ES_LEFT ); m_TestEdit.Invalidate(); } void CTestEditDlg::OnBnClickedButton2() { m_TestEdit.ModifyStyle( ES_LEFT, ES_RIGHT ); m_TestEdit.Invalidate(); } MFC’s ModifyStyle does SetWindowLong and SetWindowPos( SWP_FRAMCHANGED)[/quote:21akepaa]

Viewing all articles
Browse latest Browse all 26233

Trending Articles