16进制 转化为COLORREF 格式的

    技术2025-03-19  42

     

    CString m_BackColor.m_frame_color = "#0290D8";

    DWORD r,g,b;sscanf(m_BackColor.m_frame_color,"#%2X%2X%2X",&r,&g,&b);COLORREF rgb = RGB(r,g,b);brush.CreateSolidBrush (rgb);

    最新回复(0)