HiliteMenuItem在帧标题边框而不是mauiframe菜单上绘制项目 [英] HiliteMenuItem draws the item on frame title border instead of mauiframe menu

查看:98
本文介绍了HiliteMenuItem在帧标题边框而不是mauiframe菜单上绘制项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用HiliteMenuItem高亮显示一个菜单项,但是HiliteMenuItem在框架标题边框而不是mauiframe菜单上绘制项目,为什么?

I'm using HiliteMenuItem to highliht a menu item, but HiliteMenuItem draws the item on frame title border instead of mauiframe menu, why?

推荐答案

此外,在下面的代码中,lprcItem-> top为零,这不是真的。我想这会给上面的HiliteMenuItem造成麻烦 在标题栏上画画。有什么想法?

Also, in below code lprcItem->top is zero which is not true. i guess that is causing trouble for above HiliteMenuItem  to draw on title bar. Any idea?

GetMenuItemRect(hWnd,hMainMenu,0,& lprcItem); // hWnd是MauiFrame主窗口句柄和hMainMenu = GetMenu(hWnd);

GetMenuItemRect( hWnd, hMainMenu, 0, &lprcItem); // hWnd is MauiFrame main window handle and hMainMenu = GetMenu(hWnd);


这篇关于HiliteMenuItem在帧标题边框而不是mauiframe菜单上绘制项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆