Bool nwSetWindowColor( hWnd, col )
NWHWND hWnd
NWS_RGBA col[4]
hWnd ウィンドウハンドル col ウィンドウの各頂点の色を格納した配列アドレス
TRUE 成功 FALSE 失敗
ウィンドウの色を変更します。各頂点の色情報は、col[0]から左上頂点、右上頂点、右下頂点、左下頂点の順に指定します。
NWS_RGBA col[4] = { {255, 0, 0,255}, /* Color of the upper left vertex */ { 0,255, 0,255}, /* Color of the upper right vertex */ { 0, 0,255,255}, /* Color of the lower right vertex */ { 0, 0, 0,255}, /* Color of the lower left vertex */ }; nwSetWindowColor( hWnd, col );
ウィンドウスタイルに NWD_WS_SHADINGが指定されていない場合、左上頂点の色が全頂点に適用されます。