CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #1
    Join Date
    Dec 2007
    Location
    France
    Posts
    329

    WM_KEYDOWN and focus

    If I click on a button then it will keep the focus and I won't get any WM_KEYDOWN messages any more as long as I dont click outside and then back on the window.

    What is the cause of this behaviour and how to avoid it?

    The button:
    Code:
        switch (message)
        {
        case WM_CREATE:
            CreateWindowExA(WS_EX_CLIENTEDGE,"BUTTON", "Play",
                WS_CHILD|WS_VISIBLE,
                20, 20, 80, 25, hWnd,
                (HMENU)IDB_PLAY, 0, NULL);
    Last edited by MasterDucky; July 12th, 2014 at 04:50 AM.

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