- UID
- 151
- 积分
- 388
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-1-10
- 最后登录
- 1970-1-1
|
发表于 2002-9-10 17:42:20
|
显示全部楼层
Adesk::Boolean acedSetColorDialog(int& nColor, Adesk::Boolean bAllowMetaColor,
int nCurLayerColor);
Include File
aced.h
Adesk::Boolean
acedSetColorDialog(
int& nColor,
Adesk::Boolean bAllowMetaColor,
int nCurLayerColor);
nColor Input colorIndex to use as the default color. Returns with the colorIndex of the color chosed in the dialog
bAllowMetaColor Input Boolean indicating if BYLAYER and BYBLOCK colors are allowed
nCurLayerColor Input color of current layer
This function starts the SetColor dialog within the AutoCAD editor. The value passed in via nColor is used as the default color index in the dialog. Upon return nColor contains the color index of the color selected by the user. If bAllowMetaColor
is Adesk::kTrue, then the meta-colors BYLAYER and BYBLOCK are allowed in the dialog. nCurLayerColor is used as the color index of the color to show for BYLAYER.
Returns Adesk::kTrue if the dialog was successfully terminated via the OK button, or Adesk::kFalse if the dialog was canceled. |
|