如何为父静态控件创建子下拉菜单? [英] How to create child drop down menu for parent static control?

查看:92
本文介绍了如何为父静态控件创建子下拉菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



我想首先感谢所有花时间查看此主题并尝试提供帮助的人。



我有一个带有儿童静电控制的主窗口。



当用户点击它时静态控制发送通知消息,激活下拉菜单。



菜单应出现在静态控件下方。这就是我被卡住的地方。



我使用WIN32 API在MS Visual Studio Express 2008,Windows XP,C ++中工作。



如果需要任何其他信息(源代码或类似的东西),请提出要求,我将非常乐意提供。

Hello everyone!

I would like to start by saying thanks to everyone who takes some time to view this thread and try to help.

I have main window with a child static control.

Static control sends notification message when user clicks on it, which activates drop down menu.

Menu should appear right below static control. This is where I got stuck.

I work in MS Visual Studio Express 2008, on Windows XP, in C++, using WIN32 API.

If any other information is required ( source code or something similar ), please ask for it, I will more than gladly supply it.

推荐答案

我做到了!



感谢Richard MacCutchan的评论,我设法实现了它!



一切正常,我只需要调整x和y坐标!



感谢ALOT Rich!
I did it!

Thanks to Richard MacCutchan''s comment, I have managed to implement it!

Everything works fine, I just had to adjust x and y coordinates!

Thanks ALOT Rich!


这篇关于如何为父静态控件创建子下拉菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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