Color Index used in MFC

I just want to use Color Index instead RGB mode in the opengl application in MFC , can somebody show me some source and tell me how to use color index ??