Warren  P
Warren P

Reputation: 68862

Does the Win32 ShowWindow api behave differently on Windows 7 SP1 in some special case?

I found a bug yesterday in one of my Windows applications, which is built in a high level framework, which in the end, calls Windows APIs like CreateWindow, and ShowWindow, in order to display its user interface.

One one machine so far, and only one, which happened to be a customer machine, I observed the following behaviour:

Reading the MSDN Win32 API documentation, on ShowWindow(Handle,SW_SHOW) I can not see any reference it it moving the window bounds. I can work around this surprising result by having my window-show routine get the bounds before it calls the Win32 ShowWindow routine.

My question is, has anyone ever seen behaviour like this? I think it must be one of the following:

If anyone who has worked in C++, C, or Delphi, or any other language, has ever seen anything like this and can think of a reason why ShowWindow would have this amazing and unexpected side effect, of moving the bounds of the window, back to a certain original position, in my case, x=175, y=175, width=320, height=240, which appears to be have been the window bounds right after the initial CreateWindow call, I'd like to know what it is.

Here is a sequence of events:

According to MSDN help SW_SHOW means Activates the window and displays it in its current size and position.

This is indeed what occurs on over 100 client PCs I have observed. Only on a single customer-owned Windows 7 PC is this behaviour different.

Upvotes: 4

Views: 826

Answers (1)

Arioch 'The
Arioch 'The

Reputation: 16045

This affected system has dual AMD/ATI FireGL video cards

I ain't sure about FireGL, but for consumers videocards, made upon the same chip lineage, video-drivers exactly have add-on to reposition windows as they think is easier for operator.

it is called HydraVision Package for Catalyst Software Suite

Upvotes: 5

Related Questions