Would anyone know why the command window of a second session of VFP does not maintain its size. It appears in the upper right very small (default I think). I use a different resource file (foxuser2.dbf) and would think it would maintain the last size it was set at. I have an environment program that runs at startup that includes this routine:
************************
&& use another foxuser resource file if a session of VFP is already running
LOCAL lcApplicationTitle,lnHWnd,lcFile
*!* lcFile = "E:\Program Files\Microsoft Visual Studio\Common\VFP\FoxUser"
lcFile = "E:\Program Files\Microsoft Visual Studio\Vfp98\foxuser"
lcApplicationTitle = "VFP6-1"
DECLARE INTEGER FindWindow IN Win32API;
STRING @lpClassName, STRING @lpWindowName
lnHWnd = FindWindow(0, @lcApplicationTitle)
IF lnHwnd = 0
SET RESOURCE TO (lcFile+".dbf")
_screen.caption = "VFP6-1"
ELSE
SET RESOURCE TO (lcFile+"2.dbf")
_screen.caption = "VFP6-2"
ENDIF
************************
Extreme Programming = Plan -> Design -> Code -> Test