最近在做全屏显示,全屏对话框后,static控件无法将对话框全屏遮住,对话框边缘老是有缝隙。
这是什么原因?求解决mfc对话框

解决方案 »

  1.   

    static的大小(宽高)是不是用对话框的宽高直接除以static的个数得到的?有可能不能平分,就会有多余的剩出来了。
      

  2.   

    不是啊,退出全屏时我左上角用的是(0, 0)点,也是是对话框的最上角,原来我以为是对话框的style的原因,可找了半天也没找到,可能跟Guide有关,但是我把这个取消也不行。实在是改不了。
      

  3.   

    “Whether you are moving controls, adding controls, or rearranging a current layout, guides can help you align controls accurately within a dialog box. Guides appear as blue dotted lines across the dialog box displayed in the editor and corresponding arrows in the rulers. ”
    好像 Guide 没有 完全 去除。
      

  4.   

    恩,解决掉了,不全屏,只是将dialog移得跟屏幕一样大,把他的级别显示成最高就ok了。
      

  5.   

    “Whether you are moving controls, adding controls, or rearranging a current layout, guides can help you align controls accurately within a dialog box. Guides appear as blue dotted lines across the dialog box displayed in the editor and corresponding arrows in the rulers. ”有道理