messages from strings

This is a discussion on messages from strings within the Windows Programming forums, part of the Platform Specific Boards category; there might not be, but is there a way to retrieve a WM_message from a string like, if you had ...

  1. #1
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125

    Question messages from strings

    there might not be, but is there a way to retrieve a WM_message from a string like, if you had a string of "WM_CHAR" could you get the message from that string?



    Thanks in Advance,
    canine
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    164
    What are you talking about?

  3. #3
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125
    I'm just asking if there was a function that would return a value of a message from the message in a string. so if I had a string, "WM_CHAR" could a function return the value of WM_CHAR?
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    But why? You could write one yourself but to what purpose?

    What are you trying to do?

  5. #5
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125
    I just want an edit box to display a message and be changed by the user and then read by the function and used in SendMessage
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Well you could build this yourself without much hassle. You could compare the string to a literal and issue a message on success.

    Personally, I dont know of such a fuction, but hell it wouldnt suprise me if there was one!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Spy++ view messages posted/sent to a control, or from it?
    By hanhao in forum Windows Programming
    Replies: 2
    Last Post: 06-25-2007, 12:07 AM
  2. Strings Program
    By limergal in forum C++ Programming
    Replies: 4
    Last Post: 12-02-2006, 03:24 PM
  3. Programming using strings
    By jlu0418 in forum C++ Programming
    Replies: 5
    Last Post: 11-26-2006, 08:07 PM
  4. Reading strings input by the user...
    By Cmuppet in forum C Programming
    Replies: 13
    Last Post: 07-21-2004, 07:37 AM
  5. menus and strings
    By garycastillo in forum C Programming
    Replies: 3
    Last Post: 04-29-2002, 12:23 PM

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