2012年7月3日 星期二

[MFC] 如何取的桌面大小

 RECT hRect; 
SystemParametersInfo(SPI_GETWORKAREA , 0, &hRect, 0); 

cx = hRect.right - hRect.left;
cy = hRect.bottom - hRect.top;

沒有留言: