Re: How to modify size of dialog while in OnSize()?
From: GuitarBill (GuitarBill_at_cox_dot_net)
Date: 07/18/04
- Next message: William Gower: "Re: Changing the size of a CStatic"
- Previous message: Rail Jon Rogut: "Re: Changing the size of a CStatic"
- In reply to: billy: "How to modify size of dialog while in OnSize()?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 17 Jul 2004 17:13:10 -0700
Look at WM_SIZING/OnSizing()
"billy" <billy_dev#@#cox#.#net> wrote in message
news:VlgKc.1486$tR1.312@lakeread07...
> 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
>
>
>
- Next message: William Gower: "Re: Changing the size of a CStatic"
- Previous message: Rail Jon Rogut: "Re: Changing the size of a CStatic"
- In reply to: billy: "How to modify size of dialog while in OnSize()?"
- Messages sorted by: [ date ] [ thread ]