Hi
Can someone tell me what the :: does in front of API calls ?
Code:
///////////////////////////////////////////////////////////////////////////
// PUBLIC
// Creates a popup window with a given width and height, and returns the result
//
// [in] WNDPROC : the callback function to receive messages for this application
// [in] HINSTANCE: the instance of the application
// [in] iInitShow: the way to show a window for the first time
// [in] iWidth : the requested width (before adjusting and centering)
// [in] iHeight : the requested height (before adjusting and centering)
//
// [retval] TRUE if ok, FALSE if not
/////////////////////////////////////////////////////////////////////////////
BOOL CApplication::initPopup (WNDPROC wndProc, HINSTANCE hInst, int iInitShow, int iWidth, int iHeight)
{
WNDCLASS wc;
// Set up and register window class
wc.style = CS_HREDRAW | CS_VREDRAW ;
wc.lpfnWndProc = wndProc ;
wc.cbClsExtra = 0 ;
wc.cbWndExtra = 0 ;
wc.hInstance = hInst ;
wc.hIcon = ::LoadIcon (hInst, IDI_APPLICATION) ;
wc.hCursor = ::LoadCursor (NULL, IDC_ARROW) ;
wc.hbrBackground = (HBRUSH) ::GetStockObject (BLACK_BRUSH) ;
wc.lpszMenuName = m_p_chName ;
wc.lpszClassName = m_p_chName ;
::RegisterClass (&wc);
// Create a fullscreen window
m_hwnd = ::CreateWindowEx (0,
m_p_chName,
m_p_chName,
WS_POPUP,
0, 0, iWidth, iHeight,
NULL,
NULL,
hInst,
NULL ) ;
if (!m_hwnd)
{
return FALSE ;
}
m_hinst = hInst ;
::ShowWindow (m_hwnd, iInitShow) ;
m_enumMode = FULLSCREEN ;
//
return TRUE ;
}