C++,子窗口 WS_CAPTION 与编辑框
在一个自定义的自窗口中,使用WS_CAPTION风格的同时怎样才能让该子窗口中的编辑框正常使用;(当子窗口包含WS_CAPTION风格时,其中的编辑框好像得不到鼠标点击的...
在一个自定义的自窗口中,使用 WS_CAPTION 风格的同时怎样才能让该子窗口中的编辑框正常使用;(当子窗口包含 WS_CAPTION 风格时,其中的编辑框好像得不到鼠标点击的消息)
我是在MFC的单文档的view中响应按钮消息创建的子窗口(即我自定义的子窗口)
m_ZD.CreateEx(0,0,"子窗口",WS_CHILD | WS_VISIBLE | WS_CAPTION | WS_SYSMENU |
WS_OVERLAPPED | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX ,
CRect(125,100,725,400),this,0,0); 展开
我是在MFC的单文档的view中响应按钮消息创建的子窗口(即我自定义的子窗口)
m_ZD.CreateEx(0,0,"子窗口",WS_CHILD | WS_VISIBLE | WS_CAPTION | WS_SYSMENU |
WS_OVERLAPPED | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX ,
CRect(125,100,725,400),this,0,0); 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏200(财富值+成长值)
2个回答
展开全部
你要去掉WS_OVERLAPPED 这个和 WS_CHILD 冲突的。
Child Windows
Child windows must have a parent window and are confined to the client area of their parent. This is the major distinction between child windows and overlapped and pop-up windows.
Overlapped Windows
An overlapped window is a top-level window that has a title bar, border, and client area; it is meant to serve as an application's main window. It can also have a window menu, minimize and maximize buttons, and scroll bars. An overlapped window used as a main window typically includes all of these components.
Child Windows
Child windows must have a parent window and are confined to the client area of their parent. This is the major distinction between child windows and overlapped and pop-up windows.
Overlapped Windows
An overlapped window is a top-level window that has a title bar, border, and client area; it is meant to serve as an application's main window. It can also have a window menu, minimize and maximize buttons, and scroll bars. An overlapped window used as a main window typically includes all of these components.
更多追问追答
追问
不行呀
追答
是不是把你的东西贴出来看看。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你电脑出问题了
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询