C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[23188] Re:SendMessage에 대한 질문을 드립니다.
아더 [] 1240 읽음    2002-12-12 22:48
전 훅킹이 몬지 콜백이 몬지 잘 모르지만요. SendMessage는 바로 메시지를 해당 윈도우로 날려버리
고 PostMessage는 메시지 큐에 메시지를 쌓고 PeekMessage 가 GetMessage가로 끄집어 내는 걸로 아
는디...... 아닌강... 아님 말공..........


The SendMessage function sends the specified message to a window or windows. The function
calls the window procedure for the specified window and does not return until the window
procedure has processed the message. The PostMessage function, in contrast, posts a message
to a thread's message queue and returns immediately.


The PostMessage function places (posts) a message in the message queue associated with the
thread that created the specified window and then returns without waiting for the thread to
process the message. Messages in a message queue are retrieved by calls to the GetMessage or
PeekMessage function.



김재승 님이 쓰신 글 :
: 안녕하세요. 김재승이라고 합니다.
:
: SendMessage에 대한 질문을 하나 드릴께요.
:
: 보통 전역으로 시스템 훅킹을 걸었을 경우(마우스), 훅킹 DLL의 콜백함수를 통해
:
: 마우스 동작여부를 알수 있는데, 인위적으로 SendMessage를 사용해서 특정 윈도우에
:
: 마우스 다운 명령을 날렸을 경우 이것도 당연히 훅킹 DLL의 콜백함수가 호출된 후
:
: 해당 윈도우에 마우스 다운이 먹힐줄 알았는데 그렇지가 않고 (콜백함수를 거치지 않고)
:
: 바로 해당 윈도우에 마우스 다운이 먹힙니다. SendMessage를 사용하면 큐에 메세지가
:
: 쌓이는 것으로 알고 있는데 제가 잘못알고 있는지...ㅠㅠ
:
: 아시는 분들께 답변을 부탁드립니다.
:
: 좋은 하루 되세요. ^^

+ -

관련 글 리스트
23184 SendMessage에 대한 질문을 드립니다. 김재승 894 2002/12/12
31360     Re:SendMessage에 대한 질문을 드립니다. 서정국.새더 962 2002/12/13
23192     질문에 대한 부연설명입니다.(SendMessage) 김재승 1213 2002/12/13
23194         Re:질문에 대한 부연설명입니다.(SendMessage) 새더군 1514 2002/12/13
23195             새더군님 답변 감사드립니다. ^^ (냉무) 김재승 730 2002/12/13
23188     Re:SendMessage에 대한 질문을 드립니다. 아더 1240 2002/12/12
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.