Window coordinates?

G

Guest

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
 
M

Mark F.

Rob said:
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
 
M

M.I.5¾

Rob said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top