Question

I'm trying to call the Win32 version of SetWindowPos from within an ATL class (I need to specify a different first hWnd, which ATL normally handles), but I can't 'break out' of the ATL class and get the following error:

error C2661: 'ATL::CWindow::SetWindowPos' : no overloaded function
takes 7 arguments

How do I tell it I don't want to use the one in my base class?!

Was it helpful?

Solution

Dumbass answer... suppose someone else might have the same problem.

Prefix :: to access the global namespace. (Courtesy of CodeGuru).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top