CClientDC dc(this);
    int nPlanes = dc.GetDeviceCaps(PLANES);
    int nBpp = dc.GetDeviceCaps(BITSPIXEL);
    int nColors = 1 << (nPlanes * nBpp); // 按说是求平方,用这个得到的值为1了,
                                         // 这是什么式子呢? 
摘自《MFC Windows程序设计(第二版)》