下面一段程序是我写了用来保证程序置顶的,可是调试时出现错误,该怎么修改呀?void myTimerProc(void)
{
HWND hQQ2 = 0;
switch (m_iStep)
{
case 0:
hQQ2 = GetForegroundWindow();
RunHiddenConsole(m_szCmdline, FALSE);
while(fin == 0)
{
FindQQ();
Sleep(50);
}
if( hQQ2 !=NULL ) 
::SetWindowpos(hQQ2,HWND_TOPMOST,0,0,0,0,SWP_NOMOVE);
for(fin2=0;fin2<300;fin++)
{
Sleep(100);
::SetWindowpos(hQQ2,HWND_TOPMOST,0,0,0,0,SWP_NOMOVE);
}
m_iStep = 1;
fin = 0;
break; case 1:
CloseQQ();
m_iStep = 0;
break;
}}错误:
1>.\Find_QQ.cpp(277) : error C2039: 'SetWindowpos' : is not a member of '`global namespace''
1>.\Find_QQ.cpp(277) : error C3861: 'SetWindowpos': identifier not found