标题:
TEdit内实现右对齐
[打印本页]
作者:
w-cat
时间:
2006-3-29 20:05
标题:
TEdit内实现右对齐
转载CSDN的,
DWORD ExStyle;
ExStyle = DWORD(::GetWindowLong(Edit1->Handle, GWL_EXSTYLE)) &(~WS_EX_RIGHT) &(~WS_EX_RTLREADING) &(~WS_EX_LEFTSCROLLBAR);
ExStyle =ExStyle | WS_EX_RIGHT;
::SetWindowLong(Edit1->Handle, GWL_EXSTYLE, ExStyle );
Edit1->Invalidate();
欢迎光临 编程开发论坛 (http://bbs.lihuasoft.net/)
Powered by Discuz! 6.0.0