Re: RICHED20: EM_SETZOOM / EM_GETZOOM implementation
From: "Phil Krylov" <phil(a)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? -- Dimi Paun <dimi(a)lattica.com> Lattica, Inc.
On Fri, 22 Jul 2005 16:32:17 -0400 "Dimi Paun" <dimi(a)lattica.com> wrote:
From: "Phil Krylov" <phil(a)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.
participants (2)
-
Dimi Paun -
Phil Krylov