CMFCToolBar::SetMenuSizes

设置工具栏菜单按钮及其图像的大小。

static void __stdcall SetMenuSizes(
   SIZE sizeButton,
   SIZE sizeImage 
);

参数

  • [in] sizeButton
    以像素为单位指定工具栏按钮的大小。

  • [in] sizeImage
    以像素为单位指定工具栏图像的大小。

备注

默认情况下,菜单按钮及其图像具有未定义范围。

调用 CMFCToolBar::GetMenuButtonSize 方法确定菜单按钮和 CMFCToolBar::GetMenuImageSize 方法的范围确定菜单按钮图像的大小。

使用此方法的示例参见IEDemo和MSMoneyDemo示例。

要求

标头: afxtoolbar.h

请参见

参考

CMFCToolBar选件类

层次结构图

CMFCToolBar::GetMenuButtonSize

CMFCToolBar::GetMenuImageSize