after invoking the function below windows adjust the appliction window's position or size automatically. But this is not my desire.
SetWindowPos(NULL,-8,-128,1034,2288,SWP_NOZORDER);

解决方案 »

  1.   

    用SetWindowPos函数,即使你改变了显示器的分辨率,WINDOWS也不自动调整
      

  2.   


    If the information specified in WINDOWPLACEMENT would result in a window that is completely off the screen, the system will automatically adjust the coordinates so that 
                                                            ~~~~~~~~
     the window is visible, taking into account changes in screen resolution and multiple monitor configuration. 
    我想用SetWindowPlacement或SetWindowPos来实现子窗口全屏显示,就像VC++里的VIEW->FULL SCREEN 的效果 。可是调用这两个函数时如果窗口大小超出屏幕大小的1/8时WINDOW会对它进程调整,这使得我的程序达不到遇期的效果。