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.