EVC获取PDA设备的各个顶点坐标以及PDA显示屏的长宽? 在线等

winlyf 2008-05-30 09:11:13
EVC获取PDA设备的各个顶点坐标以及PDA显示屏的长宽?
把一副图在view视图中显示, 如何获取他的长和宽?它当前4个点坐标如何获取
在线等····
...全文
52 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhuyaqi2006 2008-05-30
  • 打赏
  • 举报
回复
结贴吧
zhuyaqi2006 2008-05-30
  • 打赏
  • 举报
回复
xScrn 是宽度,单位是pixels
zhuyaqi2006 2008-05-30
  • 打赏
  • 举报
回复
左上端的坐标是(0,0)
右下端的坐标是(rect.Width(),rect.Height())
你说的东南角
Eestsouth.x=0;
Eestsouth.y=rect.Height();

winlyf 2008-05-30
  • 打赏
  • 举报
回复
Width and height, in pixels, of the screen of the primary display monitor.宽度和高度,在映象点,主要监视器的屏幕

int xScrn = GetSystemMetrics( SM_CXSCREEN );
int yScrn = GetSystemMetrics( SM_CYSCREEN );
xScrn 获取的也应该是宽度吧?
winlyf 2008-05-30
  • 打赏
  • 举报
回复
int SBWidth = rect.Width();
int SBHeight = rect.Height();
可以获取长和宽 ,但是设备的坐标如何获取,
比如 POINT Eestsouth;为东南角坐标 如何获取它
zhuyaqi2006 2008-05-30
  • 打赏
  • 举报
回复
int xScrn = GetSystemMetrics( SM_CXSCREEN );
int yScrn = GetSystemMetrics( SM_CYSCREEN );
/*
SM_CXSCREEN,SM_CYSCREEN Width and height, in pixels, of the screen of the primary display monitor. These are the same values you obtain by calling GetDeviceCaps(hdcPrimaryMonitor, HORZRES/VERTRES).
*/
zhuyaqi2006 2008-05-30
  • 打赏
  • 举报
回复
GetSystemMetrics()
可以获得显示器的信息包括屏幕大小
zhuyaqi2006 2008-05-30
  • 打赏
  • 举报
回复
CRect rect;
GetClientRect (&rect);

19,502

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧