I am trying to use the GetWindowInfo() call such as follows:
but the VC++ 6.0 compiler complains with this:Code:RECT rect; PWINDOWINFO pwi; GetClientRect(hWnd, &rect); GetWindowInfo(hwndButton, pwi); MoveWindow(...)
D:\WatchFile.cpp(650) : error C2065: 'PWINDOWINFO' : undeclared identifier
D:\WatchFile.cpp(650) : error C2146: syntax error : missing ';' before identifier 'pwi'
D:\WatchFile.cpp(650) : error C2065: 'pwi' : undeclared identifier
I have included "windows.h" and am linking with User32.lib (just as MSDN says to).
I have looked at winuser.h. PWINDOWINFO is in there. Google doesn't have any references that help.
Does anyone have any suggestions?
Thanks in advance