Window resizing strangeness !

Jaafar Tribak

Well-known Member
Joined
Dec 5, 2002
Messages
9,822
Office Version
  1. 2016
Platform
  1. Windows
Hi dear board members,

While building some VBA code to trap the resize "event" of the excel application main window, I noticed that the code failes on some machines and works on others despite working with the same excel version(2003) in both machines and both machines running the same Win Xp Ver 2002.


Taking a closer look, I noticed that the resizing of a window (any window not just that of excel) via the user interface behaves differently depending on the machine.

On machine 1 , when a window is resized, you can see the entire window resizing as you drag the window with the mouse whereas on machine 2 , you only see a shadow of the window frame and the window doesn't fully repaint until the dragging operation is completed and the mouse is released.

I had never paid attention to this oddity until now.

Why would the resizing of windows behave differently on 2 Win XP systems ! I don't know.

Does anybody know if this is documented somewhere or have any thoughts on this ?

Regards.

Edit: Although both OS are Win XP 2002, the SPs are different namely SP3 vs SP2- Could that be the reason ?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Things like that, that are windows wide and not application specific are usually in Control panel or Display set ups.

You need to;
Control Panel
Display properties
Appearance
Effects
Select option > [Show windows contents while dragging]
 
Upvote 0
Thanks very much Ivan.

Had never noticed this Windows feature before - and the good news is that it can easily be set programmatically via the SPI_SETDRAGFULLWINDOWS flag .

Regards.
 
Upvote 0
Thanks very much Ivan.

Had never noticed this Windows feature before - and the good news is that it can easily be set programmatically via the SPI_SETDRAGFULLWINDOWS flag .

Regards.

Yes, most system wide settings can via the user32 dll and the SPI Flags
 
Upvote 0
Hi again Ivan,

The following is bugging me for quite a while.

I am subclassing the excel application and the code works fine on my PC at home.However, on my PC at work, the application crashes unless I first go to the VBE , click on the STOP button and then on the RESET button.- really weird stuff !

But what puzzles me the most is the fact that both PCs run with exactly the same OS version (Win XP SP2) and have the same Excel version (2003).

Have you come accross this oddity before ? Or is this a Windows setting that needs to be changed like the [Show windows contents while dragging] kind of thing mentioned in the previous post?

I hope you can shed some light on this as I often run into this problem when subclassing/hooking in VBA.

Regards.
 
Upvote 0

Forum statistics

Threads
1,225,398
Messages
6,184,727
Members
453,254
Latest member
topeb

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top