引用 4 楼 PPower 的回复: PPropInfo PropInfo = GetPropInfo(Control, "Caption"); if(PropInfo) SetStrProp(Control,PropInfo,"NewCaption "); 这个是通过反射来实现的,速度并不怎么样。而且只改 Caption 实现的多语言会漏掉很多地方没改。 那要怎么样才能快速实现……
PPropInfo PropInfo = GetPropInfo(Control, "Caption"); if(PropInfo) SetStrProp(Control,PropInfo,"NewCaption "); 这个是通过反射来实现的,速度并不怎么样。而且只改 Caption 实现的多语言会漏掉很多地方没改。
if (Form1->Controls[i]->ClassNameIs("TLabel")) { ((TLabel *)Form1->Controls[i])->Caption = caption; }
13,826
社区成员
102,678
社区内容
加载中
试试用AI创作助手写篇文章吧