如上
Window和View我总分不清,请大家赐教。

解决方案 »

  1.   

    是否可以这样理解:
    View为我自己做的窗口,而Window就为整个桌面屏幕,
      

  2.   

    我来听课的,不过楼主的理解肯定是错误的!
    view应该说是逻辑上的窗口,虽然屏幕显示不完,但是实际上可能比window要大得多
      

  3.   

    pDC->SetMapMode(MM_HIENGLISH);
    // pDC->SetViewportOrg(100,100);
    pDC->SetWindowOrg(100,100);
    这样的话会把当前的原点(左上角点)设置为(0,0) pDC->SetMapMode(MM_HIENGLISH);
    pDC->SetViewportOrg(100,100);
    // pDC->SetWindowOrg(100,100);这样的话会把当前的100,100点(像素点)变成坐标原点
      

  4.   

    View为用户区,Window为客户区,
    就是说,Window上可以放N个View
    这样理解呢 》?
      

  5.   

    这一段摘至<<windows程序设计>>Here's how the functions work: If you change the viewport origin to (xViewOrg, yViewOrg), the logical point (0, 0) will be mapped to the device point (xViewOrg, yViewOrg). If you change the window origin to (xWinOrg, yWinOrg), the logical point (xWinOrg, yWinOrg) will be mapped to the device point (0, 0), which is the upper left corner. Regardless of any changes you make to the window and viewport origins, the device point (0, 0) is always the upper left corner of the client area
      

  6.   

    Just remember the formula:device coordinate = (local coordinate - window org) * viewport_size / window_size + window_org;
      

  7.   

    Just remember the formula:device coordinate = (logical coordinate - window org) * viewport_size / window_size + window_org;
      

  8.   

    Windows Graphics Programming Win32 GDI and DirectDraw&reg;
    Feng Yuan 
    Publisher: Prentice Hall PTR 
    First Edition December 01, 2000
    ISBN: 0-13-086985-6, 1234 pages FengYuanMSFT(袁峰) ( ) 
    您是作者吗?那可是大牛!!如果不是,冒人家名字,太shit了!!!
      

  9.   

    FENG YUAN is a Software Design Engineer for Hewlett Packard in Vancouver, WA. He holds a Ph.D. in Software Engineering from Nanjing University. For the past four years, he has specialized in creating drivers for HP DeskJet printers—giving him a burning motivation and a unique opportunity to understand Windows graphics programming inside and out.
      

  10.   

    FengYuanMSFT(袁峰) ( ) 
    如果你是Feng Yuan作者,那可是csdn所有人当中,功力最高的人了!!!
      

  11.   

    http://www.china-askpro.com/msg25/qa97.shtml
      

  12.   

    在 Windows的作图函数中,涉及逻辑坐标到设备坐标的转换。这里提到的窗口(window)、视口(viewport)是对应的概念。视口是与设备相关的一个矩形区域,坐标单位是与设备相关的。
      

  13.   

    CDC::SetWindowOrg()移动窗口原点,CDC::SetViewportOrg()移动视图原点
      

  14.   

    科幻的回答如果显示器是的大小可以随便改变,那么显示器每次都变成view的太小就可以了,window就没存在的必要了view就是实际所需的大小
    window就是显示器给你的限制