如何在MFC中更改菜单栏的位置 [英] How to change the position of menu bar in MFC

查看:384
本文介绍了如何在MFC中更改菜单栏的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人.
我已经在MFC中使用基于对话框的应用程序制作了自定义UI.
我已经删除了默认的标题栏并绘制了位图标题栏,通过自定义服务器功能绘制了关闭按钮",最小化按钮".
但是:sigh:,当我在此对话框中设置菜单时,菜单栏出现在屏幕顶部,位图标题栏上方.
我该如何解决这个问题?
我可以更改菜单栏的位置吗?
否则,还有另一种绘制自定义标题栏而不删除默认标题栏的方法吗?

Dear all.
I have made a custom UI using Dialog based Application in MFC.
I''ve remove the default title bar and draw bitmap titlebar, draw Close Button, Minimize Button by customizing the serveral functions.
But :sigh: , when I set menu in this dialog, menubar is appeared at top of screen ,above of the bitmap titlebar.
How can I solve this problem?
Can I change the position of Menubar?
Otherwise, is there another way to draw custom titlebar without remove default titlebar?

推荐答案

如果您不使用默认标题栏并绘制自己的标题栏,那么您在其菜单的情况下也将需要执行相同的操作.
您需要自己绘制菜单并处理菜单项上的按钮单击.
If you''re not using the default title bar and drawing your own, then you will need to do the same in the case of its menu also.
You will need to draw the menu yourself and handle the button clicks on the menu items.


这篇关于如何在MFC中更改菜单栏的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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