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 wOOdy-Soft 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
Sep 17, 2001
41
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