ymca2003
Messages postés2070Date d'inscriptionmardi 22 avril 2003StatutMembreDernière intervention 3 juillet 20067 7 déc. 2004 à 18:33
si sous Windows, il ya la fct API GetDeviceCaps :
#include <windows.h>
HDC hdc = GetDC(NULL);
int cx = GetDeviceCaps(hdc, HORZRES);
int cy = GetDeviceCaps(hdc, VERTRES);
int nbp = GetDeviceCaps(hdc, BITSPIXEL);
ReleaseDC(hdc);