wndclass.hbrbackground=getStockObject(WHITE_brush);
中WHITE_BRUSH在头文件中的定义方式??

解决方案 »

  1.   

    /* Stock Logical Objects */
    #define WHITE_BRUSH         0
    #define LTGRAY_BRUSH        1
    #define GRAY_BRUSH          2
    #define DKGRAY_BRUSH        3
    #define BLACK_BRUSH         4
    #define NULL_BRUSH          5
    #define HOLLOW_BRUSH        NULL_BRUSH
    #define WHITE_PEN           6
    #define BLACK_PEN           7
    #define NULL_PEN            8
    #define OEM_FIXED_FONT      10
    #define ANSI_FIXED_FONT     11
    #define ANSI_VAR_FONT       12
    #define SYSTEM_FONT         13
    #define DEVICE_DEFAULT_FONT 14
    #define DEFAULT_PALETTE     15
    #define SYSTEM_FIXED_FONT   16
      

  2.   

    const colorref white_brush = RGB(255, 255, 255)
      

  3.   

    本以为仿照WHITE BRUSH用RGB定义一个就好,现在好象不行了。