C++ MFC - Open edit window at specific position - Stack Overflow

I have an application where, on a specific event, I want to open a edit control at a specific position

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?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745621432a4636540.html

相关推荐

  • C++ MFC - Open edit window at specific position - Stack Overflow

    I have an application where, on a specific event, I want to open a edit control at a specific position

    12小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信