/// <summary> /// Pres the process wm key down_ page down. /// </summary> /// <param name="m">The m.</param> /// <returns></returns> protected virtual bool PreProcessWmKeyDown_PageDown(ref Message m) { long pos = HexViewer.bytePosition; int cp = HexViewer.byteCharacterPosition; if (pos == HexViewer._byteProvider.Length && cp == 0) { return(true); } pos = Math.Min(HexViewer._byteProvider.Length, pos + HexViewer.hexMaxBytes); if (pos == HexViewer._byteProvider.Length) { cp = 0; } HexViewer.SetPosition(pos, cp); if (pos > HexViewer.endByte - 1) { HexViewer.PerformScrollPageDown(); } HexViewer.ReleaseSelection(); HexViewer.UpdateCaret(); HexViewer.Invalidate(); return(true); }