窗口(设备坐标和逻辑坐标)

  在微软给出的文件中窗口的定义是:

  • Occupies a certain portion of the screen.
  • May or may not be visible at a given moment.
  • Knows how to draw itself.
  • Responds to events from the user or the operating system.

  它的特性有:A window can usually be resized by the user. For example, it can be stretched on any side, minimized, maximized, and closed. 

 

显示设备是物理坐标分为:设备坐标和逻辑坐标。

设备坐标又有屏幕坐标,窗口坐标,客户区坐标。

 

逻辑坐标为假想虚拟的,可以理解为我们自己设置的。

SetWindowOrgEx SetWindowExtEx 设置逻辑坐标的原点和范围
SetViewportOrgEx SetViewportExtEx 设置设备坐标的原点和范围

 

而对于窗口,就是我们运行出的程序窗口。

 

posted @ 2018-08-18 00:29  Hk_Mayfly  阅读(725)  评论(0)    收藏  举报