[commdlg] fix for resizing a window with hook

Maxime Bellengé maxime.bellenge at laposte.net
Sat Mar 22 11:43:42 CST 2003


I was looking at why the save file dialog box of WinHex was too big and
I found that when the readonly check box and help button of a file
dialog  were hidden, the resizing of the window was done at the wrong
place.

Actually, the hook procedure (if any) was called before the resizing,
but some apps use the size of the window to resize it. So I moved the
resize code before calling the hook procedure.

This patch contains also my previous fixes for ArrangeCtrlPosition so it
replaces it.

a+

Max

Changelog:
  * Fix how the size of the dialog is computed and the child component
placed.
  * In case the help button and the readonly check box are hidden,
perform the resizing before calling the hook procedure

-- 
Maxime Bellengé <maxime.bellenge at laposte.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resizedlg.patch
Type: text/x-patch
Size: 10262 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030322/ba234b59/resizedlg.bin


More information about the wine-patches mailing list