Nindowsライブラリ - 構造体

NWS_WIN, *NWHWND

ウィンドウの基本構造体

定義

typedef struct _NWS_WIN { 
 Sint32 style; 
 Sint32 wClass; 
 char*caption; 
 Sint32 font; 
 struct _NWS_WIN *parent; 
 struct _NWS_WIN *child; 
 struct _NWS_WIN *before; 
 struct _NWS_WIN *next; 
 Sint32 x, y; 
 Sint32 w, h; 
 NWS_RGBA col[4]; 
 NWS_MSGHANDLE *msgHandle; 
 void *menuTable; 
 void *userBuf; 
 void (*clientDraw)(struct _NWS_WIN *NWFUNC); 
 void (*execFunc)(struct _NWS_WIN *NWFUNC); 
 void (*destructor)(struct _NWS_WIN* NWFUNC); 
 Sint32 param1, param2; 
 struct _NWS_WIN* hClose; 
 struct _NWS_WIN* hMaximize; 
 struct _NWS_WIN* hMinimize; 
} NWS_WIN; 

typedef NWS_WIN* NWHWND; 

メンバ

style   ウィンドウスタイル
wClass   ウィンドウクラス
caption   キャプション文字列
font   フォント種別
parent   親ウィンドウハンドル
child   子ウィンドウハンドル
before   前のウィンドウハンドル
next   次のウィンドウハンドル
x,y   クライアント領域の左上座標
w,h   クライアント領域の幅と高さ
col   4頂点の色
msgHandle   未使用(予約)
menuTable   メニューテーブル
userBuf   ユーザー用バッファ
clientDraw   クライアント描画コールバック関数アドレス
execFunc   ウィンドウ実行関数アドレス
destructor   ウィンドウ破棄コールバック関数アドレス
param1,param2   ユーザーパラメータ
hClose   クローズボックスのウィンドウハンドル
hMaximize   予約
hMinimize   予約

解説

全てのウィンドウの基本となる構造体です。ウィンドウハンドルはこの構造体へのポインタです。

参照

nwCreateButton()
nwEnableButton()
nwCreateEditWindow()
nwCreateWindow()
nwDestroyWindow()
nwEditWinAddString()
nwEditWinPrintf()
nwCreateMenuWindow()
nwCreateScrollBarArray()
nwCreateScrollBar()
nwSetScrollBarData()
nwSetScrollBarLineMove()
nwSetScrollBarPageMove()
nwSetScrollBarPos()
nwSetScrollBarRange()
nwScrWinEnableScroll()
nwScrWinGetScroll()
nwScrWinScroll()
nwScrWinSetClip()
nwFindWindow()
nwFindWindowByPos()
nwFindWindowEx()
nwGetClientRect()
nwGetWindowColor()
nwGetWindowPos()
nwGetWindowRect()
nwGetWindowSize()
nwGetWindowStyle()
nwGetWindowText()
nwSetWindowColor()
nwSetWindowPos()
nwSetWindowSize()
nwSetWindowStyle()
nwSetWindowText()

NWS_WIN, *NWHWND
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999