Click here to Skip to main content
16,006,762 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialogs Pin
Christian Graus27-Mar-02 10:12
protectorChristian Graus27-Mar-02 10:12 
GeneralRe: Dialogs Pin
Nish Nishant27-Mar-02 13:45
sitebuilderNish Nishant27-Mar-02 13:45 
QuestionWin API equivalent of cin? Pin
thx27-Mar-02 10:02
thx27-Mar-02 10:02 
AnswerRe: Win API equivalent of cin? Pin
Christian Graus27-Mar-02 10:11
protectorChristian Graus27-Mar-02 10:11 
AnswerRe: Win API equivalent of cin? Pin
Chris Losinger27-Mar-02 10:19
professionalChris Losinger27-Mar-02 10:19 
GeneralRe: Win API equivalent of cin? Pin
29-Mar-02 5:59
suss29-Mar-02 5:59 
AnswerRe: Win API equivalent of cin? Pin
Tomasz Sowinski27-Mar-02 10:15
Tomasz Sowinski27-Mar-02 10:15 
AnswerRe: Win API equivalent of cin? Pin
Ravi Bhavnani27-Mar-02 10:29
professionalRavi Bhavnani27-Mar-02 10:29 
Imho, you're best off creating an edit control and handling the Windows message generated when the user presses <CR>. As others have pointed out, there is no synchronous, blocked "cin" function since Windows is an event driven system.

As you've probably encountered, simply calling TextOut() once won't permanently display your text. You'll need to call the function every time your window needs to be painted - i.e. you'll need to handle the WM_PAINT event.

/ravi

"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
GeneralRe: Win API equivalent of cin? Pin
Christian Graus27-Mar-02 10:26
protectorChristian Graus27-Mar-02 10:26 
GeneralRe: Win API equivalent of cin? Pin
Tomasz Sowinski27-Mar-02 10:28
Tomasz Sowinski27-Mar-02 10:28 
GeneralRe: Win API equivalent of cin? Pin
Ravi Bhavnani27-Mar-02 10:36
professionalRavi Bhavnani27-Mar-02 10:36 
GeneralRe: Win API equivalent of cin? Pin
Tomasz Sowinski27-Mar-02 10:32
Tomasz Sowinski27-Mar-02 10:32 
AnswerRe: Win API equivalent of cin? Pin
28-Mar-02 6:27
suss28-Mar-02 6:27 
GeneralUninstall DLL Pin
27-Mar-02 9:45
suss27-Mar-02 9:45 
GeneralRe: Uninstall DLL Pin
soptest27-Mar-02 9:47
soptest27-Mar-02 9:47 
GeneralRe: Uninstall DLL Pin
27-Mar-02 9:54
suss27-Mar-02 9:54 
Generalsequential member variable name Pin
lucy27-Mar-02 9:27
lucy27-Mar-02 9:27 
GeneralRe: sequential member variable name Pin
Tim Smith27-Mar-02 9:45
Tim Smith27-Mar-02 9:45 
GeneralRe: sequential member variable name Pin
lucy27-Mar-02 10:05
lucy27-Mar-02 10:05 
GeneralRe: sequential member variable name Pin
Tomasz Sowinski27-Mar-02 10:34
Tomasz Sowinski27-Mar-02 10:34 
GeneralRe: sequential member variable name Pin
lucy27-Mar-02 11:29
lucy27-Mar-02 11:29 
GeneralRe: sequential member variable name Pin
Tim Smith27-Mar-02 11:52
Tim Smith27-Mar-02 11:52 
GeneralCTabCtrl Pin
Rickard Andersson2027-Mar-02 9:26
Rickard Andersson2027-Mar-02 9:26 
GeneralRe: CTabCtrl Pin
Michael P Butler27-Mar-02 9:33
Michael P Butler27-Mar-02 9:33 
Generalintegers Pin
27-Mar-02 7:35
suss27-Mar-02 7:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.