Watch, Follow, &
Connect with Us

ID: 25646, Control resize bugfix unit for the WH_CALLWNDPROC issue; V 1.1

by Andreas Hausladen Email: Anonymous


Unit that fixes the control resize bug for stacked controls that is caused by WH_CALLWNDPROC window hooks.
Download Details
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 5.0  to 11.0 1466 downloads
Copyright: No significant restrictions


Size: 3,849 bytes
Updated on Mon, 26 May 2008 09:51:26 GMT
Originally uploaded on Sat, 24 May 2008 11:42:35 GMT
SHA1 Hash: A098AA5695F82EBC43C2A52B487AF903E3514350
MD5 Hash: B9A31F83D7E8977E59A0522B005EA258

    Explore the files in this upload

Description
VCL applications (and others) can forget to align stacked controls if a WH_CALLWNDPROC window hook is installed. This is due to a kernel stack overflow that is caused by calling SetWindowPos recursively while aligning the controls.

The fix unit changes the control alignment of the VCL by transforming the recursive SetWindowPos calls into iterative calls.


Usage:
Add the unit to the .dpr file's uses-list.


History:
2008-05-25:
- Added code to detect endless resizing controls.
- Added experimental OPTIMIZED_RESIZE_REDRAW option for faster form resizing. Disabled by default.
2008-05-24:
- Initial release



Detailed information about the Windows bug by Jordan Russell:
http://news.jrsoftware.org/news/toolbar2000/msg07779.html

   Latest Comments  View All Add New

Move mouse over comment to see the full text
Reply  Posted by Craven Weasel on Oct 08 2012
Control resize bugfix unit for the WH_CALLWNDPROC issue; V 1.1
Reply  Posted by Stephen Millington on Dec 05 2011
re: Control resize bugfix unit for the WH_CALLWNDPROC issue; V 1.1
Reply  Posted by Roland Bengtsson on Oct 25 2011
Control resize bugfix unit for the WH_CALLWNDPROC issue; V 1.1

Server Response from: ETNACDC02