怎么在菜单栏的空白地方加入一个logo位图?
解决方案 »
- 请问:在注册表中如何得到所有安装了的应用程序程序的信息?
- win32 消息循环疑惑
- DdeInitialize函数
- 哥们过两几天就要到华为3c0m报道了,不知这个公司到底如何,有什么比较不好的地方,请大家说说。
- 给我
- 快帮帮忙吧。怎样在一个用MFC Appwizard生成的对话框中生成一个capCreateCaptureWindow()窗口?
- 我想实现一个类似tooltip的那样浮动窗口。但不是在toolbar或者按钮上的。随时随地都要弹出来的。如何实现?
- 将数字变为字符怎么写?
- VC访问SQL SERVER的问题?
- SOCKET服务端如何判断客户端停止了传送文件?
- Skin++ 0.1.3 使用指南这个方法,使得标题和菜单不能正常显示哦
- MFC程序如何安全地完全地退出?
UINT uPosition,
UINT uFlags,
HBITMAP hBitmapUnchecked,
HBITMAP hBitmapChecked
);
ParametershMenu
[in] Handle to the menu containing the item to receive new check- bitmaps.
uPosition
[in] Specifies the menu item to be changed, as determined by the uFlags parameter.
uFlags
[in] Specifies how the uPosition parameter is interpreted. The uFlags parameter must be one of the following values.
MF_BYCOMMAND
Indicates that uPosition gives the identifier of the menu item. If neither MF_BYCOMMAND nor MF_BYPOSITION is specified, MF_BYCOMMAND is the default flag.
MF_BYPOSITION
Indicates that uPosition gives the zero-based relative position of the menu item.
hBitmapUnchecked
[in] Handle to the bitmap displayed when the menu item is not selected.
hBitmapChecked
[in] Handle to the bitmap displayed when the menu item is selected.
Return ValueIf the function succeeds, the return value is nonzero.If the function fails, the return value is zero. To get extended error information, call GetLastError.
ResIf either the hBitmapUnchecked or hBitmapChecked parameter is NULL, the system displays nothing next to the menu item for the corresponding check state. If both parameters are NULL, the system displays the default check- bitmap when the item is selected, and removes the bitmap when the item is not selected. When the menu is destroyed, these bitmaps are not destroyed; it is up to the application to destroy them. The selected and clear bitmaps should be monochrome. The system uses the Boolean AND operator to combine bitmaps with the menu so that the white part becomes transparent and the black part becomes the menu-item color. If you use color bitmaps, the results may be undesirable.Use the GetSystemMetrics function with the CXMENUCHECK and CYMENUCHECK values to retrieve the bitmap dimensions.Example
For an example, see Simulating Check Boxes in a Menu.
Function InformationMinimum DLL Version user32.dll
Header Declared in Winuser.h, include Windows.h
Import library User32.lib
Minimum operating systems Windows 95, Windows NT 3.1
Unicode Implemented as Unicode version. See AlsoMenus--------------------------------------------------------------------------------© 2005 Microsoft Corporation. All rights reserved.