simple question(about edit boxes)

This is a discussion on simple question(about edit boxes) within the Windows Programming forums, part of the Platform Specific Boards category; How do I input an int value to an "edit" box? Thanks....

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    162

    Question simple question(about edit boxes)

    How do I input an int value to an "edit" box? Thanks.

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    I think you would have to use the function:

    SetDlgItemText

    I pretty sure that's what it is. Give that a try and tell me how it works.

    --Garfield
    1978 Silver Anniversary Corvette

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    162
    It did except I switched to SetDlgItemInt instead of Text, but thanks for the idea. Also I was wondering: What's the difference in using TEXT("blah balh") and just "blah blah"? Thanks!

  4. #4
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    >> What's the difference in using TEXT("blah balh") and just "blah blah <<

    You see, the TEXT macro is Unicode supported. So, if you are using Unicode then the TEXT macro is "internally" deleted. But, the TEXT macro is needed in Unicode.

    You can just use "blah blah" in Unicode, but then the system will internally have to translate that and that is time. Expensive time.

    You're better off using TEXT macro.

    --Garfield
    1978 Silver Anniversary Corvette

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Copying Texts from Edit Boxes.
    By incognito in forum Windows Programming
    Replies: 1
    Last Post: 04-22-2003, 08:37 PM
  2. Edit Boxes, I need specifics..
    By MrWizard in forum Windows Programming
    Replies: 4
    Last Post: 06-30-2002, 04:42 PM
  3. Edit Boxes Question
    By Ruben in forum Windows Programming
    Replies: 2
    Last Post: 09-14-2001, 12:06 AM
  4. Edit Boxes Question
    By RubenJ in forum Windows Programming
    Replies: 1
    Last Post: 09-12-2001, 08:01 PM
  5. Password Edit Boxes
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 08-27-2001, 02:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21