为什么我的 HMENU hmenu=GetSystemMenu(hwnd,FALSE);无法显示系统菜单呢.
会不会是我的WNDCLASS结构变量在风格有问题? 可是后来我又去找了一道例题,仍然不显示.
我的WNDCLASS变量的设置是这样的:
WNDCLASS wndclass;
wndclass.style=CS_HREDRAW|CS_VREDRAW;//为了简单,仅采用了滚动条.
.....
HMENU hmenu=GetSystemMenu(hwnd,FALSE);//显示未果,但hmenu并不为空.
会不会是我的WNDCLASS结构变量在风格有问题? 可是后来我又去找了一道例题,仍然不显示.
我的WNDCLASS变量的设置是这样的:
WNDCLASS wndclass;
wndclass.style=CS_HREDRAW|CS_VREDRAW;//为了简单,仅采用了滚动条.
.....
HMENU hmenu=GetSystemMenu(hwnd,FALSE);//显示未果,但hmenu并不为空.
解决方案 »
- vc++list中的值怎么立即更新显示
- VC菜鸟:怎么样用VC连接MSSQL数据库?
- 如何动态生成Menu内容?
- 如果要同时处理600连接,应该怎么处理.如果用selectevent方法该怎么处理,开600/60=10个线程?
- access数据库日期操作 求解
- 一个最菜的问题:CSDN邮件期刊用什么来阅读?
- 图像叠加
- 如何去掉CHtmlEditDoc中自动生成的文件头
- 问一个很弱的问题
- 关于windows检测文件变化遇到的问题?
- 非客户区绘制的问题
- ***********我有一个类CPerson,如何让它从CObject继承?在New Class对话框的下拉列表里没有CObject类啊*******
怎么为窗口创建菜单栏呢.
Pointer to a null-terminated character string that specifies the resource name of the class menu, as the name appears in the resource file. If you use an integer to identify the menu, use the MAKEINTRESOURCE macro. If this member is NULL, windows belonging to this class have no default
The application can add the new menu to an existing menu, or it can display a shortcut menu by calling the TrackPopupMenuEx or TrackPopupMenu functions. 太晚了,睡觉去了。