woaidongmao

文章均收录自他人博客,但不喜标题前加-[转贴],因其丑陋,见谅!~
随笔 - 1469, 文章 - 0, 评论 - 661, 引用 - 0
数据加载中……

CMenu::AppendMenu的注意地方

CMenu::AppendMenu

This method appends a new item to the end of a menu.

BOOL AppendMenu ( 
UINT nFlags, 
UINT nIDNewItem = 0, 
LPCTSTR lpszNewItem = NULL); 

BOOL AppendMenu ( 
UINT nFlags, 
UINT nIDNewItem, 
const CBitmap* pBmp ); 
Parameters
nFlags
Specifies information about the state of the new menu item when it is added to the menu. It consists of one or more of the values listed in the Remarks section.
nIDNewItem
Specifies either the command ID of the new menu item or, if nFlags is set to MF_POPUP, the menu handle (HMENU) of a pop-up menu. The nIDNewItem parameter is ignored, not needed, if nFlags is set to MF_SEPARATOR.
lpszNewItem
Specifies the content of the new menu item. The nFlags parameter is used to interpret lpszNewItem in the following way:

posted on 2009-10-10 19:48 肥仔 阅读(1656) 评论(0)  编辑 收藏 引用 所属分类: MFC存档


只有注册用户登录后才能发表评论。
【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理