使用API
Several styles are available to change the alignment of the text: three horizontal styles (BS_LEFT, BS_CENTER, and BS_RIGHT) and three vertical styles (BS_BOTTOM, BS_VCENTER, and BS_TOP).
// Align text to the bottom right
SetWindowLong(edit1.Handle,
GWL_STYLE,
GetWindowLong(edit1.Handle, GWL_STYLE)
or BS_RIGHT or BS_BOTTOM);
edit1.Refresh;
你可以试一下,不行再找我
Several styles are available to change the alignment of the text: three horizontal styles (BS_LEFT, BS_CENTER, and BS_RIGHT) and three vertical styles (BS_BOTTOM, BS_VCENTER, and BS_TOP).
// Align text to the bottom right
SetWindowLong(edit1.Handle,
GWL_STYLE,
GetWindowLong(edit1.Handle, GWL_STYLE)
or BS_RIGHT or BS_BOTTOM);
edit1.Refresh;
你可以试一下,不行再找我
我忘说了,是输入数字的时候啊。