title: I included <winuser.h>, but compiler throws "was not declared" at MonitorFromWindow
body: <p>There is already a <a href="https://stackoverflow.com/questions/20709016/why-is-monitorfromwindow-missing-not-declared-c-winapi">post</a> about it, but it didn't solve the error. I tried commenting out the if on winuser.h, but it did no effect.</p>
  
  <pre><code>// Header
      #include &lt;windows.h&gt;
      #include &lt;winuser.h&gt;
  
  // Cpp
   monitorA = MonitorFromWindow(hwnd, MONITOR_DEFAULTTOPRIMARY); // Errors
      GetMonitorInfo(monitorA, &amp;monitorAInfo); // No error
  </code></pre>
  
  <p>error: 'MonitorFromWindow' was not declared in this scope</p>
  
  <p>error: 'MONITOR_DEFAULTTOPRIMARY' was not declared in this scope</p>
  
  <p>Also, I am using Code::blocks with gcc compiler.</p>