title: Getting Continuous Window Resize Event in SDL 2
body: <p>I use the following structure to get new width and height of the resized SDL window:</p>
  <pre><code>if (sdl_set-&gt;GetMainEvent()-&gt;type == SDL_WINDOWEVENT)
  {
    if (sdl_set-&gt;GetMainEvent()-&gt;window.event == SDL_WINDOWEVENT_RESIZED)
    {
      ScreenWidth = sdl_set-&gt;GetMainEvent()-&gt;window.data1;
      ScreenHeight = sdl_set-&gt;GetMainEvent()-&gt;window.data2;
      cout &lt;&lt; &quot;Window Resized!&quot; &lt;&lt; endl;
    }
  }
  </code></pre>
  <p>But with this structure I'm only able to get new data after the resizing is done that is when I finish dragging and release the mouse button.</p>
  <p>How can I get the new data continuously, that is while I'm dragging the window?</p>