Was that the Question? well it's dead easy:-

invoke GetDC,hWin
invoke GetDeviceCaps,eax,COLORRES
now eax holds the number of colours, in bits per pixel. so if it returns 8, then it's 256 colours 16 = 65535 colours etc etc Umbongo
Posted on 2001-04-03 08:25:00 by umbongo