谢谢

解决方案 »

  1.   

    HDC GetDC(
      HWND hWnd   // handle to a window
    );
     
    Parameters
    hWnd 
    Handle to the window whose device context is to be retrieved. If this value is NULL, GetDC retrieves the device context for the entire screen. 
    Windows 98, Windows NT 5.0 and later: If this parameter is NULL, GetDC retrieves the device context for the primary display monitor. To get the device context for other display monitors, use the EnumDisplayMonitors and CreateDC functions. 
      

  2.   

    HDC GetDC(NULL)
    好象没有别的了
      

  3.   

    HDC hdc=CreateDC("DISPLAY",NULL,NULL,NULL);