CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2004
    Location
    Punjab, India
    Posts
    113

    Hot keys are not functioning properly

    Hi,

    I am facing a starnge situation. Mine is a SDI application. A modal dialog box is shown when user selects a command option. In this dialog a long procedure is placed which is run in a workwr thread. Problem is that whenever, i start my worker thread, hotkeys and tab button stops functioning however mouse evnts are handled properly.

    Can anyone figure out the reason.
    thnx in advance.

    Amit

  2. #2
    Join Date
    Jan 2004
    Location
    Punjab, India
    Posts
    113

    shortcuts do also fail

    Hi,

    i tried accelerators also, they also fails when worker thread is on. everything is fine once i stop my worker thread.

    Amit

  3. #3
    Join Date
    Feb 2002
    Posts
    3,788

    Re: Hot keys are not functioning properly

    Originally posted by Amit Sebiz
    Hi,

    I am facing a starnge situation. Mine is a SDI application. A modal dialog box is shown when user selects a command option. In this dialog a long procedure is placed which is run in a workwr thread. Problem is that whenever, i start my worker thread, hotkeys and tab button stops functioning however mouse evnts are handled properly.

    Can anyone figure out the reason.
    thnx in advance.

    Amit
    see this thread. it might help.

  4. #4
    Join Date
    Jan 2004
    Location
    Punjab, India
    Posts
    113
    Hi,
    I checked this in a view(thread is fired by a handler in view) just to get same problem. well, good thing here was that shortkeys for my menus worked but for controls palced on view failed. is this something to do with multithreading.

    Amit

  5. #5
    Join Date
    Jan 2004
    Location
    Punjab, India
    Posts
    113
    hi Alin,

    well, i checked out the thread, it seems a good alternative to worker threads for some cases but in my case the certain processes can go as long as for an hour and i think i should not peek with message threads for that long.

    thnx for your reply,
    Amit

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