Problem in Calculator Program

This is a discussion on Problem in Calculator Program within the Windows Programming forums, part of the Platform Specific Boards category; I am writing a Calculator program in Visual C++. I am using a Dialog-Based Template for the purpose. My problem ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    42

    Problem in Calculator Program

    I am writing a Calculator program in Visual C++. I am using a Dialog-Based Template for the purpose. My problem is I am unable to trap the WM_CHAR message in the program. So my Calc cannot use the Numpad.
    I am also unable to trap the WM_KEYDOWN message. Should I change the template to a SDI, or else, what should I do.
    Thanks in advance.
    First hear, then understand, and then, leaving all distractions, shut your mind to outside influences and devote yourself to developing the truth within you.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    What control do you use as the keypad? One solution is an editbox. Now, add an onchange handler for the editbox.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM

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