X
xiaobuqian
Unregistered / Unconfirmed
GUEST, unregistred user!
在FORM上创建一个BUTTON1,然后:procedure TForm1.Button1Click(Sender: TObject);var wp : TWNDCLASSEX ;begin wp.cbSize := sizeof(wp2); if ( GetClassInfoEx(HInstance,'TButton',wp) ) then CreateWindow('TButton','AButton',WS_BORDER or WS_VISIBLE or WS_CHILD,100,100,80,25, Form1.Handle,0,HInstance,0);end;如果将'TButton'改成windows标准的Button就没有错误,但TButton应该已经注册了,还是不能直接用CreateWindow创建?请大家帮忙看看。