I will show you soon...
Ok i do this ...
Method Control(sys wParent,string ClassName,sys style,Wx,Wy,Ww,Wh,string _text) as sys
sys cWnd
cWnd = CreateWindowEx 0, ClassName, _text, style, Wx, Wy, Ww, Wh, wParent, 0, 0, 0
ShowWindow cWnd, SW_SHOW
Method = cWnd
End Method
'-------------------------------------------------------
END CLASS
'################################
' TEST
'################################
Dim w as cWindow
Dim hw as Int
w.Init()
hw=w.CreateWindow("newWindow",WS_SYSMENU,100,100,400,300,0)
'SetButton (w,10,10,100,24,"buto",0,0,100)
w.Control(hw,"BUTTON",0x50000000,10,10,80,24,"NewButton")