From: foobar on
Hi,

Does CRichEditCtrl zoom work properly?

In my case

::SendMessage(m_pRichEdit->m_hWnd, EM_SETZOOM, 200, 100);

is working but not

::SendMessage(m_pRichEdit->m_hWnd, EM_SETZOOM, 50, 100);

What could be the reason?

How can I add zoom support for the text inside CRichEditCtrl with the
ability to type into
the control even when zoomed?

Thanks.
From: Joseph M. Newcomer on
Since you have not defined what you mean by "but not", it is hard to guess what the
problem is.
joe

On Thu, 24 Apr 2008 07:40:54 -0700 (PDT), foobar <somefoobar(a)gmail.com> wrote:

>Hi,
>
>Does CRichEditCtrl zoom work properly?
>
>In my case
>
>::SendMessage(m_pRichEdit->m_hWnd, EM_SETZOOM, 200, 100);
>
>is working but not
>
>::SendMessage(m_pRichEdit->m_hWnd, EM_SETZOOM, 50, 100);
>
>What could be the reason?
>
>How can I add zoom support for the text inside CRichEditCtrl with the
>ability to type into
>the control even when zoomed?
>
>Thanks.
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
From: foobar on

The thing that I am trying achieve is zoom in and zoom out
CRichEditCtrl.

Zoom by 200% is working i.e., font size is increasing, but when trying
to zoom by 50% the font size
is not getting reduced. Zoom in is working but zoom out is not working
with EM_SETZOOM message.

Am I missing anything? MSDN documentation doesn't mention anything
against zoom out.

Thanks.

On Apr 24, 9:12 pm, Joseph M. Newcomer <newco...(a)flounder.com> wrote:
> Since you have not defined what you mean by "but not", it is hard to guess what the
> problem is.
> joe
>
>
>
> On Thu, 24 Apr 2008 07:40:54 -0700 (PDT), foobar <somefoo...(a)gmail.com> wrote:
> >Hi,
>
> >Does CRichEditCtrl zoom work properly?
>
> >In my case
>
> >::SendMessage(m_pRichEdit->m_hWnd, EM_SETZOOM, 200, 100);
>
> >is working but not
>
> >::SendMessage(m_pRichEdit->m_hWnd, EM_SETZOOM, 50, 100);
>
> >What could be the reason?
>
> >How can I add zoom support for the text inside CRichEditCtrl with the
> >ability to type into
> >the control even when zoomed?
>
> >Thanks.
>
> Joseph M. Newcomer [MVP]
> email: newco...(a)flounder.com
> Web:http://www.flounder.com
> MVP Tips:http://www.flounder.com/mvp_tips.htm