CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Posts
    54

    to trap key combinations ???

    hi,

    how to trap Ctrl+ALt+anyChar (combination) in a SDK based dialog application.

    bens

  2. #2
    Join Date
    Mar 2001
    Location
    Germany/Hannover
    Posts
    32
    use an ACCELERATOR ... this will translate any defined key-combination to a simple message passed to your application through WM_COMMAND ...

    see functions:

    LoadAccelerator()
    TransmitAccelerator()
    .
    .
    .

    if you are using visual studio there is a way to create an accel-table with the reaourcen editor.
    Last edited by RockNix; April 15th, 2003 at 05:26 AM.
    So far ... RockNix

    ---------------------------------------------
    Want some code about Threading,
    SerCOM, Subclassing .... ?

    Go for it - visit us on:
    www.klangwerker.de
    ---------------------------------------------

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