Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3711
Number of posts: 9173

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Binding Keystrokes To Child Windows... Posted by Sephiroth on 11 Jan 2003 at 11:17 AM
OK, I got REALLY bored alst night when my cable wen tout, so I started playing around with my help files and coding somethin I thought would be a joke. I learned TCP/IP in about an hour and now have a chat client that works, but has two minor problems (not networking related).

The first is this. The child window that you enter text in has focus. You type a message to your buddy and press enter. Windows just "dings" and sits there. It will send if you CLICK the send button, but how can I bind the enter key to the send button?

Next, the big edit control that is used to display the chat text starts at the top and goes down. How do I make the chat start at the bottom and go up like in a traditional chat client, such as PIRCH or mIRC?

Thanks for the info, and once I am sure this program works and leaves no back-doors I'll post it online for people to check out.

-Sephiroth
Report
Re: Binding Keystrokes To Child Windows... Posted by biki on 11 Jan 2003 at 3:14 PM
Are you using a dialogbox or a window ?

For #1, Dialog, see Q102589
For #1, Window, trap the WM_KEYDOWN message and process the VK_RETURN key
For #2, see Q109550 and Q12190 in MSDN

HTH
ps. no offence, but i've been trying to learn TCP/IP for the last one year! ;)


~Bikram

Report
And one more....Q67655 (NTH) Posted by biki on 11 Jan 2003 at 3:24 PM
(NTH) = no text here

~Bikram

Report
Re: Binding Keystrokes To Child Windows... Posted by Sephiroth on 11 Jan 2003 at 11:01 PM
Windows or Unix/Linux? My code is 100% compilable on all three OSes. I would be happy to share the source with you via email or ICQ if you have either. I don't want it getting out though. Not until I am 100% finished with it and have a completed application to go along with it. The Windows version adds only one variable and two lines of code that turn on winsock for the application. On Unix or Linux you would just not use that var and two lines of code.

-Sephiroth

Report
Re: Binding Keystrokes To Child Windows... Posted by biki on 12 Jan 2003 at 10:06 AM
I was referring to Windows. I don't have a clue about unix! And sure, it'd be great if you're willing to be so generous as to share source code with me! mailto:nv5050@indiatimes.com?subject=SourceCode

~Bikram

Report
Re: Binding Keystrokes To Child Windows... Posted by Sephiroth on 13 Jan 2003 at 11:30 AM
OK, how the )$(&#%)&)(#^&)^#%@^_(!#&*$ do I find that article on MSDN? Microsoft can do NOTHING so $(*&^ing simple. I tried searching for Q12190 and got no results, and there's no article search out in plain view or anywhere to my knowledge. Yes, I harbor a LOT of hatred for MS simply because of the way they operate and the way they can make nothing f(*&(*&ing simple.

Oh by the way, my client and server chat app works except for the chat log, which is why I am looking for that article. Once I get the backlog working I'll send you the client and give you my hostname to check it out, although if anybody is there, it'll just be me!

-Sephiroth

Report
Re: Binding Keystrokes To Child Windows... Posted by velius on 13 Jan 2003 at 3:34 PM
Try going to support.microsoft.com


When it came down to it I dropped everything and ran.
-Ramza Final Fantasy Tactics

Report
Re: Binding Keystrokes To Child Windows... Posted by pingpong on 13 Jan 2003 at 4:23 PM
Seph,

By default, MSDN search engine does not search the Knowledge Base Articles (QXXXX) stuff. So go to msdn.microsoft.com, click Advanced and check everything.

: OK, how the )$(&#%)&)(#^&)^#%@^_(!#&*$ do I find that article on MSDN? Microsoft can do NOTHING so $(*&^ing simple. I tried searching for Q12190 and got no results, and there's no article search out in plain view or anywhere to my knowledge. Yes, I harbor a LOT of hatred for MS simply because of the way they operate and the way they can make nothing f(*&(*&ing simple.
:
: Oh by the way, my client and server chat app works except for the chat log, which is why I am looking for that article. Once I get the backlog working I'll send you the client and give you my hostname to check it out, although if anybody is there, it'll just be me!
:
: -Sephiroth
:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.