HelpPath{Other}CommandName{mainWindow}ReturnValue{int handle=}OpenBrace{(}Parameters{}CloseBrace{)}Description{Retrieves the window handle of the main DarkBASIC Pro window.  Use the result with createGadgetFromWindow() to create a gadget which you can then manipulate using the other gadget commands.}ReturnDescription{See Above}Param1{}Param1Desc{}Param2{}Param2Desc{}Param3{}Param3Desc{}Param4{}Param4Desc{}Param5{}Param5Desc{}Param6{}Param6Desc{}Remarks{It is faster to use one call to setGadget than seperate calls to resizeGadget and moveGadget.}Param7{}Param7Desc{}ExampleSource{}SeeAlso{}Param8{createTopMost}Param8Desc{If 1, the window is created independant of all the other windows in your program, if 0 the window is created as a child of another gadget, as specified by the parent parameter.}Param9{parent}Param9Desc{Handle to the parent for the new gadget.  If 0, this is either the main DBPro window if createTopMost is 0, or the window has no parent (if createTopMost is 1)}