Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GET DISPLAY SETTINGS

Status
Not open for further replies.

TheCrappyProgrammer

Programmer
Joined
Sep 17, 2001
Messages
41
Location
US
How would I programmically obtain the number of colors that the computer is using? (i.e.: 256, 16 bit, 24 bit)
 
Here is how you do it

============================================================================
Code:
DEVMODE dm; 
	dm.dmSize = sizeof(DEVMODE); 
	EnumDisplaySettings( NULL, ENUM_CURRENT_SETTINGS, &dm );
and switch on dm.dmBitsPerPel


Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top