Jun 28, 2002 #1 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)
How would I programmically obtain the number of colors that the computer is using? (i.e.: 256, 16 bit, 24 bit)
Jun 28, 2002 #2 Zyrenthian Programmer Joined Mar 30, 2001 Messages 1,440 Location US 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 Upvote 0 Downvote
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