本文整理自网络,侵删。
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: getfocus - 获取当前拥有焦点的窗口的句柄
Delphi如何获取一个字符串再另一个字符串中最后一次出现的位置
Delphi 怎么将一个流转换成字符串?或者将字符串转出一个流
更多相关阅读请进入《Delphi》频道 >>