我想在切换分辨率的时候,改变对话框的位置,有响应分辨率改变的函数和消息吗?拜托各位大侠

解决方案 »

  1.   

    切换分辨率的时候,程序会收到 WM_DISPLAYCHANGE 消息
      

  2.   

    WM_DISPLAYCHANGE
    The WM_DISPLAYCHANGE message is sent to all windows when the display resolution has changed.WM_DISPLAYCHANGE 
    cBitsPerPixel = wParam; 
    cxScreen = LOWORD(lParam); 
    cyScreen = HIWORD(lParam); 
     
    Parameters
    cBitsPerPixel 
    Specifies the new image depth of the display in bits per pixel. 
    cxScreen 
    Specifies the new horizontal resolution of the screen. 
    cyScreen 
    Specifies the new vertical resolution of the screen.