What does :: mean after declaring an object?
<p>I am trying to do some hello world stuff after completing <a href="http://www.cplusplus.com/doc/tutorial/" rel="nofollow">the standard c++ tutorial</a>. The first thing I tried doing is drawing directly on the screen without a window. I found <a href="http://stackoverflow.com/questions/2981621/how-to-draw-to-screen-in-c">this</a> and it works. </p>

<pre><code>#include "stdafx.h"
#include &lt;Windows.h&gt;
#include &lt;iostream&gt;
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
    HDC screenDC = ::GetDC(0);
    ::Rectangle(screenDC, 200, 200, 300, 300);

    int exit; cin &gt;&gt; exit;
    return 0;
}
</code></pre>

<p><img src="http://i.stack.imgur.com/pGu2R.png" alt="enter image description here"></p>

<p>But nowhere in the standard c++ tutorial does it cover anything like this</p>

<pre><code>HDC screenDC = ::GetDC(0);
::Rectangle(screenDC, 800, 200, 300, 300);
</code></pre>

<p>What is Rectangle a member of?</p>

<hr>

<p>If you don't mind I have some other questions that might be simple. If not don't worry about it.</p>

<ul>
<li><p>As soon as my rectangle has a window move over it, it disappears. Is there a callback to let me know about this so I can repaint?</p></li>
<li><p>How do I change the color of my rectangle?</p></li>
<li><p>Where can I go to learn about this? Every tutorial I have found has been sparse and most have been out of date. I can get a book if that's what I need to do. Have tried the following (sometimes with success and sometimes not):</p></li>
<li><p><a href="http://msdn.microsoft.com/en-us/library/vstudio/bb384843.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/vstudio/bb384843.aspx</a></p></li>
<li><p><a href="http://www.winprog.org/tutorial/" rel="nofollow">http://www.winprog.org/tutorial/</a></p></li>
<li><p><a href="http://msdn.microsoft.com/en-us/library/ms533895(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms533895(v=vs.85).aspx</a></p></li>
</ul>
