Nindowsライブラリ - ウィンドウサポート関数

nwSetWindowColor

ウィンドウ色の指定

書式

Bool nwSetWindowColor( hWnd, col[4] ) 
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が指定されていない場合、左上頂点の色が全頂点に適用されます。

nwSetWindowColor
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999