我想在窗体加上菜单(mainmenu),所以只能使用bssizeable.同时又想控制窗体的大小,特别是去除标题栏上的最大化最小化按钮。请问各位有什么好的方法?
解决方案 »
- Delphi如何获取一个字符串再另一个字符串中最后一次出现的位置
- 【整理】对键盘的ASCII码整理了一下,有要用的进来看吧...但几个键没找到,请各位帮助找一下。
- 为什么 TDCOMConnection 组件找不到应用程序服务器所在的机器的名字?
- 如何用语句实现,使某个文件夹共享
- 点击checklistbox内的选项,为什么发生这种错误?
- 请教何处可下载最新的大富翁论坛的CHM脱机文档(截止至2003年的6月份)?
- 大家帮帮忙!
- ◎◎◎◎出错了!求教了!帮忙了!给分了!(之2)◎◎◎◎
- 一个listview 的问题
- 为什么在把数据库中的blob字段读出写到memo时会报错?(急)!!!
- 怎么判断 192.168.0.1的服务器上的sql server有没有运行
- 怎样设置激发ontimer的时间间隔?
另外
BOOL EnableMenuItem( HMENU hMenu, // handle to menu
UINT uIDEnableItem, // menu item to enable, disable, or gray
UINT uEnable // menu item flags
);
ParametershMenuIdentifies the menu. uIDEnableItemSpecifies the menu item to be enabled, disabled, or grayed, as determined by the uEnable parameter. This parameter specifies an item in a menu bar, menu, or submenu. uEnableSpecifies flags that control the interpretation of the uIDEnableItem parameter and indicate whether the menu item is enabled, disabled, or grayed. This parameter must be a combination of either MF_BYCOMMAND or MF_BYPOSITION and MF_ENABLED, MF_DISABLED, or MF_GRAYED. Value Meaning
MF_BYCOMMAND Indicates that uIDEnableItem gives the identifier of the menu item. If neither the MF_BYCOMMAND nor MF_BYPOSITION flag is specified, the MF_BYCOMMAND flag is the default flag.
MF_BYPOSITION Indicates that uIDEnableItem gives the zero-based relative position of the menu item.
MF_DISABLED Indicates that the menu item is disabled, but not grayed, so it cannot be selected.
MF_ENABLED Indicates that the menu item is enabled and restored from a grayed state so that it can be selected.
MF_GRAYED Indicates that the menu item is disabled and grayed so that it cannot be selected.
Return ValuesThe return value specifies the previous state of the menu item (it is either MF_DISABLED, MF_ENABLED, or MF_GRAYED). If the menu item does not exist, the return value is 0xFFFFFFFF.这个api你试试