请问dialog的背景色是系统色中的那个色?
dialog的背景色用RGB()应该怎样写?
COLOR_BTNFACE宏是否代表代表这个颜色?

解决方案 »

  1.   

    GetSysColor
    The GetSysColor function retrieves the current color of the specified display element. Display elements are the parts of a window and the display that appear on the system display screen. DWORD GetSysColor(
      int nIndex   // display element
    );
    Parameters
    nIndex 
    [in] Specifies the display element whose color is to be retrieved. This parameter can be one of the following values. Value Meaning 
    COLOR_3DDKSHADOW Dark shadow for three-dimensional display elements.COLOR_3DFACE, COLOR_BTNFACE Face color for three-dimensional display elements and for dialog box backgrounds. RGB(218,208,200)
      

  2.   

    winuser.h 中定义
    #define COLOR_BTNFACE  15
    只是一个索引。
      

  3.   

    这个程序显示系统颜色,预定义值,RGB值http://bbs.wolf.net.cn:8080/attachment.php?s=f53213f89ac04470d64bb45d88efec30&postid=2350413
      

  4.   

    得到系统颜色:
    COLORREF    color;
    color =(COLORREF)GetSysColor(COLOR_BTNFACE);