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);
spécificités GTK : aucune idée...
|