Thread: newbe question

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    11

    newbe question

    I知 rather new to Windows programming and would need a bit of help. I know how to create basic child windows and stuff. Anyway I知 trying to make a program, where you could press the button with letter on it and it would print the letter into textbox (I知 actually planning to make all letters there Russian, so it would be possible to write shorter text in Russian without having to install Russian language module)
    Well, Everything was fine until the part where the letter should appear to textbox, the way I though it should works didn稚, so I would be happy, if anyone would give me the syntax how to do something like that.
    Thanks,
    Kitu.

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    You can use SendMessage() to the text box to send a WM_CHAR message to pretend to type a letter to the text box. Though I'm a little unclear as to whether or not you are trying to write to a text box that is enabled or disabled. You will have to enable the box before altering text in this way. Also you can use SetWindowText() to alter the text box's content.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM