当前位置: 动力学知识库 > 问答 > 编程问答 >

windows - How do you create a text popup box in C?

问题描述:

I want to make a popup that requires you to type something in and hit ok. Below is what I have so far:

MessageBoxA(NULL, "Message", "Title", MB_OK);

It pops up a box, but you can't type anything in. Is there a way to popup a box that lets the user type something in before closing the popup?

网友答案:

Yes there is. You may want to read about Edit Controls.

What you're looking for is basically an edit control with the WS_OVERLAPPEDWINDOW style or alternatively some kind of top-level window with an edit control as a child.

For more information, read the documentation .

分享给朋友:
您可能感兴趣的文章:
随机阅读: