From: przemyslaw.sliwa on
Hello,

I have got a dialog with a custom control, which I would like to
resize dynamically. I tried MoveWindow and it does not work somehow.
Does anyone know how to do this? A special property has to be assigned
in the resource editor?

Cheers

Pshemek
From: David Wilkinson on
przemyslaw.sliwa(a)gazeta.pl wrote:
> Hello,
>
> I have got a dialog with a custom control, which I would like to
> resize dynamically. I tried MoveWindow and it does not work somehow.
> Does anyone know how to do this? A special property has to be assigned
> in the resource editor?

Pshemek:

You should be able to resize any window with MoveWindow() or SetWindowPos(). Are
you sure you are handling the window/client coordinate issue correctly?

--
David Wilkinson
Visual C++ MVP
From: AliR (VC++ MVP) on
What does not work mean exactly? Moves the window to the wrong place, or
doesn't move it at all or what?

Are you using GetDlgItem or do you have a variable attached to your control?

AliR.


<przemyslaw.sliwa(a)gazeta.pl> wrote in message
news:ddab3db0-42ac-4ed1-afc6-812efd7a586e(a)d1g2000hsg.googlegroups.com...
> Hello,
>
> I have got a dialog with a custom control, which I would like to
> resize dynamically. I tried MoveWindow and it does not work somehow.
> Does anyone know how to do this? A special property has to be assigned
> in the resource editor?
>
> Cheers
>
> Pshemek


From: Joseph M. Newcomer on
Show your code. Tell where it is executed.
joe

On Wed, 23 Apr 2008 07:19:25 -0700 (PDT), przemyslaw.sliwa(a)gazeta.pl wrote:

>Hello,
>
>I have got a dialog with a custom control, which I would like to
>resize dynamically. I tried MoveWindow and it does not work somehow.
>Does anyone know how to do this? A special property has to be assigned
>in the resource editor?
>
>Cheers
>
>Pshemek
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Tom Serface on
Is there anything in the custom control code that is causing it to size
itself. For example, is this one of those things that subclasses a static
and resizes based on the initial size of the static control? You didn't say
what kind of control you're working with so it's tough to tell, but I've had
this kind of issue before where I had to resize the parent window (for the
control) as well.

Tom

<przemyslaw.sliwa(a)gazeta.pl> wrote in message
news:ddab3db0-42ac-4ed1-afc6-812efd7a586e(a)d1g2000hsg.googlegroups.com...
> Hello,
>
> I have got a dialog with a custom control, which I would like to
> resize dynamically. I tried MoveWindow and it does not work somehow.
> Does anyone know how to do this? A special property has to be assigned
> in the resource editor?
>
> Cheers
>
> Pshemek