RICHED20: EM_SETZOOM / EM_GETZOOM implementation

Phil Krylov phil at newstar.rinet.ru
Fri Jul 22 17:01:39 CDT 2005


On Fri, 22 Jul 2005 16:32:17 -0400
"Dimi Paun" <dimi at lattica.com> wrote:

> From: "Phil Krylov" <phil at newstar.rinet.ru>
> > Added EM_GETZOOM and EM_SETZOOM RichEdit message handlers.
> 
> > +  case EM_GETZOOM:
> > +    if (!wParam || !lParam)
> > +      return FALSE;
> > +    *(int *)wParam = editor->nZoomNumerator;
> > +    *(int *)lParam = editor->nZoomDenominator;
> > +    return TRUE;
> 
> I don't know what Windows does, but it may also do:
> 
> +  case EM_GETZOOM:
> +    if (wParam) *(int *)wParam = editor->nZoomNumerator;
> +    if (lParam) *(int *)lParam = editor->nZoomDenominator;
> +    return TRUE;
> 
> Have you checked?

No, but according to the documentation:

The message returns TRUE if message is processed, which it will be if both
wParam and lParam are not NULL

-- Ph.



More information about the wine-devel mailing list