please can one tell me what does this code mean
HDC b=::GetDC(this->GetSafeHwnd());
By parts:
GetDC()
"call a function called GetDC()"
::GetDC()
"which is in the global namespace"
::GetDC(this->GetSafeHwnd())
"and as a parameter to that call, pass the return value of calling
the GetSafeHwnd() method on the object this code is running
against"
b = ::GetDC(this->GetSafeHwnd())
"and save the return value of GetDC() in a variable named 'b'"
HDC b = ::GetDC(this->GetSafeHwnd())
"which is of type 'HDC'"
HDC b = ::GetDC(this->GetSafeHwnd());
"and don't do anything else in this statement"
What those functions/methods actually *do* depends on
your environment, which I don't know anything about,
but that's what the code you posted does.
Sean