질문하기질문하기
 

답변됨disable user input

  • 2009년 11월 4일 수요일 오전 11:53hhgauci 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hi!

    I'm new to WinAPI. I'd like to disable user input to a particular window, of which I've got a handle, and then re-enable it later.
    Is there an easy way to do that?

    Thx in advance for any help!

답변

  • 2009년 11월 4일 수요일 오후 12:03.Sreedhar 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    use EnableWindow(TRUE); and EnableWindow(FALSE); on the window handle
    Knowledge is like light; It spreads only when you have clear and transparent mind. - Sreedhar Dv
    • 답변으로 표시됨hhgauci 2009년 11월 4일 수요일 오후 12:24
    • 답변으로 제안됨Shival Mathur 2009년 11월 4일 수요일 오후 12:16
    •  
  • 2009년 11월 4일 수요일 오후 12:03Nikita Leontiev 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    You can use EnableWindow(hWnd, FALSE) or use solution from this topic (using WM_KEYFIRST/WM_KEYLAST and WM_MOUSEFIRST/WM_MOUSELAST).
    • 답변으로 표시됨hhgauci 2009년 11월 4일 수요일 오후 12:24
    • 답변으로 제안됨Shival Mathur 2009년 11월 4일 수요일 오후 12:16
    •  

모든 응답

  • 2009년 11월 4일 수요일 오후 12:03.Sreedhar 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    use EnableWindow(TRUE); and EnableWindow(FALSE); on the window handle
    Knowledge is like light; It spreads only when you have clear and transparent mind. - Sreedhar Dv
    • 답변으로 표시됨hhgauci 2009년 11월 4일 수요일 오후 12:24
    • 답변으로 제안됨Shival Mathur 2009년 11월 4일 수요일 오후 12:16
    •  
  • 2009년 11월 4일 수요일 오후 12:03Nikita Leontiev 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    You can use EnableWindow(hWnd, FALSE) or use solution from this topic (using WM_KEYFIRST/WM_KEYLAST and WM_MOUSEFIRST/WM_MOUSELAST).
    • 답변으로 표시됨hhgauci 2009년 11월 4일 수요일 오후 12:24
    • 답변으로 제안됨Shival Mathur 2009년 11월 4일 수요일 오후 12:16
    •