本文整理自网络,侵删。
delphi edit控制字居中,居左,居右
SetWindowLong(Edit1.Handle, GWL_STYLE, GetWindowLong(Edit1.Handle, GWL_STYLE) or ES_CENTER);
SetWindowLong(Edit1.Handle, GWL_STYLE, GetWindowLong(Edit1.Handle, GWL_STYLE) or ES_LEFT);
SetWindowLong(Edit1.Handle, GWL_STYLE, GetWindowLong(Edit1.Handle, GWL_STYLE) or ES_RIGHT);
相关阅读 >>
Delphi winapi: gettopwindow - 获取指定窗口的子窗口中最顶层的窗口句柄
Delphi 生成xml 方法 与 Delphi txt文件操作
Delphi xe7开发的获取网页中字符串的编码是否是utf8
更多相关阅读请进入《Delphi》频道 >>