对话框的自定义主菜单(Windows 7) [英] Dialog's Custom Main Menu (Windows 7)

查看:94
本文介绍了对话框的自定义主菜单(Windows 7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

有许多与自定义Codeproject对话框窗口的主菜单有关的文章,包括自定义"菜单.但是他们似乎都没有回答我的问题.

我有一个(无边界)窗口,其中有一个手工绘制的定制标题栏(看一下图片:http://tau.rghost.ru/36362976.image).我需要以某种方式在此胖"标题栏下显示一个主菜单.我如何使用MFC做到这一点?默认情况下,本机"菜单似乎只能位于对话框窗口客户区的顶部.我的问题有什么解决办法吗?
谢谢!

Hello

There are a lot of articles related to customizing main menu of the dialog window on Codeproject, including "custom-drawn" menus. But none of them seem to answer my question.

I have a (borderless) window that has a custom-drawn by hand title bar (take a look at the picture: http://tau.rghost.ru/36362976.image). I need to display somehow a main menu under this "fat" title bar. How could I do this, using MFC? By default "native" menus seem to be able to be located only in the top of the client area of the dialog window. Is there any solution for my problem?
Thank you!

推荐答案

男人,有很多要描述的东西,

顺便说一句,如果您知道如何在窗口中的任何地方弹出菜单,那么在胖标题栏下创建和显示自己的菜单将不是一项大任务.
Man, Lots to describe,

By The way, if you know how to pop up menu anywhere in the window it wont be a big task for you to create and display your own menu under your fat title bar.


这篇关于对话框的自定义主菜单(Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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