_plugin_menuentrysetchecked
This function sets the checked state of a menu entry. Notice that this function sets a menu item as checkable and thus it will toggle per default on click. If you want different behavior, make sure to call this function on every click with your desired state.
void _plugin_menuentrysetchecked ( int pluginHandle, //plugin handle int hEntry, //handle of the menu entry bool checked //new checked state );
参数
pluginHandle: | 调用插件的句柄。 |
---|---|
hEntry: | 来自先前添加的子菜单或主插件菜单的菜单句柄。 |
checked: | New checked state. |
返回值
此函数不返回值。