怎样使用GetWindowRect();来获取窗口左顶点坐标? 10
//---------------------------------------------------------------------------#include...
//---------------------------------------------------------------------------
#include <stdio.h>
#include <windows.h>
#include<graphics.h>
int main(void)
{
RECT rc;
HWND hwnd = GetHWnd();
GetWindowRect(hwnd,&rc);
printf("%ld %ld\n",rc.left,rc.top);
getchar();
return 0;
}
//---------------------------------------------------------------------------
输出结果为负,大神求解~ 展开
#include <stdio.h>
#include <windows.h>
#include<graphics.h>
int main(void)
{
RECT rc;
HWND hwnd = GetHWnd();
GetWindowRect(hwnd,&rc);
printf("%ld %ld\n",rc.left,rc.top);
getchar();
return 0;
}
//---------------------------------------------------------------------------
输出结果为负,大神求解~ 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询