http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Edit box with win32



Cesar,

If you are programming Windows with the SDK (the right way) instead of MFC 
(the easy way) you need to get Charles Petzold's book: Programming Windows 
(Fifth Edition is most recent).  As far as getting what has been typed into 
an edit box, you can use the SendMessage() function, specifying the edit box 
HWND and the EM_GETLINE message, or you can just use the 
GetWindowTextLength() and GetWindowText() calls. If you are using VC++, you 
should have msdn installed, and you can look this stuff up.  One thing i can 
say for Microsoft is that VC++ with the MSDN and code completion installed 
is (possibly) the best/easiest/most complete development environment on the 
face of the planet.

As far as getch() in win32, you need to lookup the WM_KEYDOWN/WM_KEYUP 
messages.

Cheers,
Ben.


From: Cesar Rodriguez <cesar.rodriquez@cook-hurlbert.com>
Reply-To: gameprogrammer@gameprogrammer.com
To: "'gameprogrammer@gameprogrammer.com'"  
<gameprogrammer@gameprogrammer.com>
Subject: Edit box with win32
Date: Tue, 18 Jul 2000 14:26:33 -0500

hi!, I'm making a little game with vc++ and fastgraph for windows, I need a
edit box to get the player name, I was able to put the edit box using
CreateWindowEx function, but I need to get the string that the user enters
and to make the edit box invisible and visible when needed.

also the thing that I really would like it to have a function like getch()
in win32.

thanks in advance


=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCꫨ please visit:
http://gameprogrammer.com/mailinglist.html

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCꫨ please visit:
http://gameprogrammer.com/mailinglist.html