CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2007
    Posts
    25

    Question How To use HotKey Control in VC++?

    How To use HotKey Control in VC++?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: How To use HotKey Control in VC++?

    Victor Nijegorodov

  3. #3
    Join Date
    May 2007
    Posts
    25

    Question Re: How To use HotKey Control in VC++?

    I have read the documentation,I have set control on my dialog
    WORD dw = 'D';
    m_hot.SetHotKey(dw,HOTKEYF_CONTROL);
    when I run program it displays the key "ctrl+D " in hotkey control.
    But what does it does,it doesnot activates window
    How to use the key?

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: How To use HotKey Control in VC++?

    What do you mean by "it doesnot activates window"?
    Victor Nijegorodov

  5. #5
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: How To use HotKey Control in VC++?

    Quote Originally Posted by shivditya
    I have read the documentation...
    But what does it does,it doesnot activates window
    How to use the key?
    A hot key control is a window that enables the user to enter a combination of keystrokes to be used as a hot key. A hot key is a key combination that the user can press to perform an action quickly. For example, a user can create a hot key that activates a given window and brings it to the top of the z-order. The hot key control displays the user's choices and ensures that the user selects a valid key combination.
    The control just lets you catch a key combination the application is to register, one way or another. It activates nothing. Seems you need to get back to reading the documentation.
    Last edited by Igor Vartanov; March 16th, 2012 at 10:10 AM.
    Best regards,
    Igor

  6. #6
    Join Date
    May 2007
    Posts
    25

    Unhappy Re: How To use HotKey Control in VC++?

    Thank you for reply It seems I have to register Hotkey ,then only it will work

  7. #7
    Join Date
    May 2007
    Posts
    25

    Resolved Re: How To use HotKey Control in VC++?

    Thankyou very much I got it I registered the hot key and mapped WM_HOTKEY in function and it does work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured