Guest Rob Posted July 17, 2007 Posted July 17, 2007 I am trying to prove that an application running under windows XP has a bug. I suspect that when double clicking on the taskbar, windows or the application changes it window location to a position off the screen. The symptoms are: - the window disappears - The item is stillon the task bar. - clicking on the taskbar item does not maximize the window (at least not on the viewable screen) - minimizing all other apps does not display the item. Is there a tool that i can use to display the coordinates of the window so i can show it to the techies and tell them "i told you so"? or a couple of lines that i can run under vb/.net to do this? (i have .net and visual studio but haven't had a chance to learn them) Thanks a ton. Rob
Guest Mark F. Posted July 17, 2007 Posted July 17, 2007 Re: Window coordinates? "Rob" <Rob@discussions.microsoft.com> wrote in message news:8F710DF2-5BFD-40AF-8766-383BAD58AC40@microsoft.com... >I am trying to prove that an application running under windows XP has a >bug. > I suspect that when double clicking on the taskbar, windows or the > application changes it window location to a position off the screen. > > The symptoms are: > - the window disappears > - The item is stillon the task bar. > - clicking on the taskbar item does not maximize the window (at least not > on the viewable screen) > - minimizing all other apps does not display the item. > > Is there a tool that i can use to display the coordinates of the window so > i > can show it to the techies and tell them "i told you so"? or a couple of > lines that i can run under vb/.net to do this? (i have .net and visual > studio but haven't had a chance to learn them) > > Thanks a ton. > > Rob <This is really a programming topic> The window coordinates are different depending on the layout of the desktop. The Windows API function "GetSystemMetrics" loads the desktop information into a structure which will hold that information. Using Visual Basic or a script you can call screen.width and screen.height to return the max resolution size (e.g., 1024 x 768). There is a different in max size and available size too. The latter take the taskbar into account. In your case there may be a problem in a OnSize or OnResize window event. http://msdn2.microsoft.com/en-us/library/ms724385.aspx Mark
Guest M.I.5¾ Posted July 18, 2007 Posted July 18, 2007 Re: Window coordinates? "Rob" <Rob@discussions.microsoft.com> wrote in message news:8F710DF2-5BFD-40AF-8766-383BAD58AC40@microsoft.com... >I am trying to prove that an application running under windows XP has a >bug. > I suspect that when double clicking on the taskbar, windows or the > application changes it window location to a position off the screen. > > The symptoms are: > - the window disappears > - The item is stillon the task bar. > - clicking on the taskbar item does not maximize the window (at least not > on the viewable screen) > - minimizing all other apps does not display the item. > > Is there a tool that i can use to display the coordinates of the window so > i > can show it to the techies and tell them "i told you so"? or a couple of > lines that i can run under vb/.net to do this? (i have .net and visual > studio but haven't had a chance to learn them) > I have come across this before, but in a slightly different context. The problem was that the graphics card was a dual head card able to drive two monitors. The 'missing' window was actually located on the second display, inspite of not being enabled, or indeed, present. It was necessary to temporarily connect a second monitor, enable it and drag the window back to where it belonged.
Recommended Posts