focus

Discussion in 'Win32' started by johny10151981, Oct 6, 2008.

  1. johny10151981

    johny10151981 New Member

    Joined:
    Jul 7, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    hello i am quite a new programmer.
    well i have problem with focus.
    if i create a custom window as child to main window it dont get focus. so i cant create caret on new child window. It neve get WM_SETFOCUS message. if i fource WM_SETFOCUS it immidiately generate a WM_KILLFOCUS MSG. some one pls help
     
  2. johny_1015_1981

    johny_1015_1981 New Member

    Joined:
    Oct 5, 2008
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Hello Everybody,
    I solved my own problem,
    The problem was I did not use SetActiveWindow who will make sure that My created window get keyboard focus
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice