1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Attaching a dialog to a process.

Discussion in 'MFC' started by reachb4, Oct 3, 2010.

  1. reachb4

    reachb4 New Member

    Oct 3, 2010
    Likes Received:
    Trophy Points:
    Hi Folks,

    I am planning to show a dialog (which will act as a drop down list) on any text editor where the user presses a key combination. I would like to know how I can make the dialog work as if it is part of the application on which it is invoked.

    I need to achieve the following things.

    1. I want to close dialog when the main application shuts down.
    2. I don’t want to take the focus away from the editor when the dialog is active.
    3. I want to get the focus on the dialog only when user presses arrow buttons.
    4. I want to insert the text selected from the dialog onto the editor

    The dialog will help the user to auto complete words. I have done the hooking part.

    Please advice.

    Thanks in advance,

Share This Page