我在1024*768下开发的程序,到了800*600下,窗口就变大了,里面的控件也是的。我现在要的是,不管在哪个分辨率下,总保持窗口和控件都那样大,该怎么办呢?

解决方案 »

  1.   

    java 写的程序很容易作到,VC我就不是很清楚~~~~~~~~~~~
    不好意思。
      

  2.   

    resize your window according to screen resolution, refer to
    http://www.codeguru.com/dialog/BindingDialog.html
      

  3.   

    void Metrics()
    {
    CSize sizeScreen (GetSystemMetrics (SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN)); 
    if(sizeScreen.cx==1024)
    AfxMessageBox("1024*768分辨率");
    else if(sizeScreen.cx==800)
    AfxMessageBox("800*600分辨率");
    else if(sizeScreen.cx==640)
    AfxMessageBox("640*480分辨率");
    ......不在这儿废话了
    }