How to modify size of dialog while in OnSize()?

From: billy (billy_dev#_at_#cox#.#net)
Date: 07/17/04


Date: Sat, 17 Jul 2004 13:54:01 -0700

I've got a dialog box that, when resized, I'd like to enforce a specific
width-->height
ratio. I can run my algorithm in the OnSize() to determine the correct size
based on
how much the box is currently being resized, but if I call something like
SetWindowPos()
while in OnSize(), OnSize() is called again and I'm in an infinite loop. I
suppose I can
wait for the mouse button to be released and then resize, but that seems
like a hassle.
I'd appreciate any help, thanks.

~billy