最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin2浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论