Hi guga,
The routines for the FFT you can download here: see Reply #16
The analyzer is nothing more than a 1024 sample FFT normalized.
The magnitude spectrum is calculated as follows :
do the FFT routine.
Get the sqrt((Real*Real)+(Imag*Imag)) for every 512 positive complex sample. ( this is the first half of the FFT output)
Then draw the result as lines to the screen.
To zoom the spectrum as i think you mean is choose an offset in your audiodata and do the FFT with the amount of samples you like 1024, 2048, 4096 etc.... and draw them to the screen.
Or get for example 200 audio samples and fill the rest with zeros to 2048 samples total and then do a FFT of 2048.
Now you have the frequency response of 200 samples zoomed out over 1024 output bins.