admin管理员组文章数量:1434380
I have an application where, on a specific event, I want to open a edit control at a specific position x,y
with a specific size width,height
. In the opened window, I want the user to enter a string and confirm with the enter-button.
I'm absolutely new to MFC, so I have very little knowledge on how this could be possible. What I tried so far is sth. like this:
// given: long x, y, width, height;
POINT p;
p.x = x;
p.y = y;
auto* edit = new CEdit();
edit->SetCaretPos(p);
However, I have no clue on how to display the new field, how to set its' size and how to capture the event of user input. Can you help me out with some ideas at least on how I could start?
本文标签: C MFCOpen edit window at specific positionStack Overflow
版权声明:本文标题:C++ MFC - Open edit window at specific position - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745621432a2666705.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论