我刚学VC,对计算机的了解也不深,以前学过PB。
今天我想做个带图标的菜单,但发现难度还不小。
VC好象得自己重新做一个这样的类出来。
似乎不象PB那样,只要选择一个图标就行了。
感觉就做界面而言,相比之下,VC还是蛮麻烦的。
那么怎么还有这么多人学VC?
今天我想做个带图标的菜单,但发现难度还不小。
VC好象得自己重新做一个这样的类出来。
似乎不象PB那样,只要选择一个图标就行了。
感觉就做界面而言,相比之下,VC还是蛮麻烦的。
那么怎么还有这么多人学VC?
2. VC的代码辅助编辑功能是我所见过最强悍,光整个IDE的使用技巧就可以写一本和C++Primer一样厚的书了。
3. VC目前的编译器是Windows平台上最棒的。无它
cattlenzq(吃狼的豆腐) ( ) 信誉:100 2006-06-05 12:05:00 得分: 0
用记事本写程序的才是程序员
===================================
我认为,用VC的IDE写文章、看网页的人才是真正的程序员。
为什么学VC?无可奉告.
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.