How to write a soft keyboard in VC++

Posted on 2004-11-03
Last Modified: 2013-11-20

I have to write a program in VC++. I want to make a soft keyboard containg some of the  actual/physical  keys on the keyboard. Now by using mouse if I press on the soft keyboard keys, the same action should occur that  occurs when presssed on the physical keys on the keyboard.

I did not work on this type of application till now. Can anyone please help me or give me some directions.

Question by:l_madhavi
    LVL 5

    Expert Comment

    Which classes are you using? Is it an MDI, SDi or Dialog based application?
    As a general rule, you can divide the view (Where the softkeys are defined) into small rectangles and when the user clicks over the rectangles, based on the position of clicks execute the proper commands.
    You may also have the softkeys as a modeless dialog and when it is visible, get the commands as above solution and send the commands to the the main application.

    Good Luck!

    Author Comment


    I am using a SDI based appliaction.

    LVL 6

    Accepted Solution

    hi madhavi; back with old ID :)
    no probs

    have a look at the following link

    i don't know will it suffice to ur requirements

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now