::Postmessage function

Hi guys,

I'm reading a MFC software code and i encountered this in one of the switch statement:

case ResetMyStatus:
((CMMIApp *)AfxGetApp())->resetMyStatus();
::PostMessage(m_hwndNotify, WM_USER_UPDATE, 0, 0);
break;

I'm wondering what does the double semicolon (::) before the PostMessage function does? Is it referring to some hidden win32 namespace?
[::] with no namespace prepended is the global namespace.
::PostMessage is necessary because CWnd has it's own PostMessage. It's the way to differentiate between the two.
Yes, i see now that CWnd Postmessage has a slightly different syntax as it does not have argument for windows handle.

http://msdn.microsoft.com/en-us/library/9tdesxec%28VS.80%29.aspx

Thanks guys!
Topic archived. No new replies allowed.