Hi,
I would like to know if the window positions were restored from a save, or if the app is run for the first time and auto-sized. The reason is that I want to give the user a better 1st time window, but if the user sets their own window size, I don't want to mess with it.
Right now, I use something like if GetDeviceWidth() = 1024 and GetDeviceHeight() = 768 then newRun = 1. if newRun is true then I calculate a window size/position based on the GetMaxDeviceWidth/Height. This works but if the user wanted 1024x768 I would keep changing it (unlikely in my case but alas, not correct
I don't think there is a better way to do this? I thought I could check for the existence of the file window_position.dat but I don't think there's a good way to get the path to the file. GetFileExists("../window_position.dat") won't work and there's no way I can see to get the path to window_position.dat so I can check it with raw access. Does anyone have a though as to how I can either know the window position/size came from a saved file, or know the path to where window_position.dat would live, should it exist?
Thanks