Changing the number of Bars on screen?

 
Is there a way to programmatically change the number of bars on the screen -- shrink or grow the chart horizontally ?
 
#define MT4_WMCMD_ZOOM_IN         33025
#define MT4_WMCMD_ZOOM_OUT        33026
#include <WinUser32.mqh>
#import "user32.dll"
  int    GetAncestor(int, int);
#import
   int      main = GetAncestor(WindowHandle(Symbol(), Period()), GA_ROOT);
   PostMessageA(main, WM_COMMAND, MT4_WMCMD_ZOOM_IN, 0);
ref
 
Thanks! I never would have figured this one out on my own.