Change clocation of widow on d3d9graphics
BlitzMax Forums/BlitzMax Module Tweaks/Change clocation of widow on d3d9graphics
| ||
to change initial window location on startup of app (not in a second time) just change the DXGRAPHICS.MOD opne d3d9graphics.bmx and change the window location, for example.. all applications with a name that starts by "_" where placed on right bottom of screen at startup. If Not depth Local desktopRect[4] GetWindowRect GetDesktopWindow(),desktopRect If AppTitle[..1]="_" rect[0]=desktoprect[2]-width-50 rect[1]=desktoprect[3]-height-50 else rect[0]=desktopRect[2]/2-width/2; 'middle of screen rect[1]=desktopRect[3]/2-height/2; 'middle of screen endif rect[2]=rect[0]+width; rect[3]=rect[1]+height; AdjustWindowRect rect,wstyle,0 EndIf after that just recompile the madule with: bmk makemods brl.dxgraphics |