How to modify size of dialog while in OnSize()?
From: billy (billy_dev#_at_#cox#.#net)
Date: 07/17/04
- Next message: R. John Nesselhauf: "Re: Making the ReplaceSel "act" like a typical Windows Program."
- Previous message: Luc Kumps: "Re: Is it (easily) possible to put a breakpoint on a Data change programmatically?"
- Next in thread: GuitarBill: "Re: How to modify size of dialog while in OnSize()?"
- Reply: GuitarBill: "Re: How to modify size of dialog while in OnSize()?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: R. John Nesselhauf: "Re: Making the ReplaceSel "act" like a typical Windows Program."
- Previous message: Luc Kumps: "Re: Is it (easily) possible to put a breakpoint on a Data change programmatically?"
- Next in thread: GuitarBill: "Re: How to modify size of dialog while in OnSize()?"
- Reply: GuitarBill: "Re: How to modify size of dialog while in OnSize()?"
- Messages sorted by: [ date ] [ thread ]