Discussion:
set parent of a NON mdi window
(too old to reply)
Glenn Johansen
2008-11-04 23:26:43 UTC
Permalink
I think this has it! Anyone have additional suggestions?

EXTERN CHANDLE SetParent(CHANDLE,CHANDLE) User32
f = new form()
f.b = new pushbutton(f)
f.mdi=.f.
f.smalltitle=.t.
f.visible:=.f.
f.metric:=6
f.top=15
f.left=15
f.open()
setparent(f.hwnd,_app.framewin.hwnd)
f.visible:=.t.
I want to attatch a NON MDI form to _app.framewin.
The reason I want to do this is I want the visual properties of the NON
MDI form.
I want to turn off min,max,exit buttons.
I seem to remember there was a way to do this with an API call named
something like setparent()?
TIA - glenn
Geoff Wass [dBVIPS]
2008-11-05 05:28:39 UTC
Permalink
In article <***@news-server>, ***@saiamerica.net
says...
Post by Glenn Johansen
I think this has it! Anyone have additional suggestions?
EXTERN CHANDLE SetParent(CHANDLE,CHANDLE) User32
f = new form()
f.b = new pushbutton(f)
f.mdi=.f.
f.smalltitle=.t.
f.visible:=.f.
f.metric:=6
f.top=15
f.left=15
f.open()
setparent(f.hwnd,_app.framewin.hwnd)
f.visible:=.t.
Glenn,

I have no suggestions for the code above, but I was going to suggest the
dUFLP. Look for the string "sysClose" in the MISCAPI.prg.
--
Geoff Wass [dBVIPS]
Montréal, Québec, Canada

.|.|.| dBASE info at http://geocities.com/geoff_wass |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
.|.|.| IT Consultant http://Geoff_Wass.com |.|.|.
Loading...