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
[24048] Re:vb의 sendkey와 같은 함수를 C++builder에서 만드는 방법을 알려 주세요
임문환 [mhlim] 1189 읽음    2003-02-05 00:15
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.

LRESULT SendMessage(
  HWND hWnd,      // handle of destination window
  UINT Msg,       // message to send
  WPARAM wParam,  // first message parameter
  LPARAM lParam   // second message parameter
);


WM_KEYDOWN
nVirtKey = (int) wParam;    // virtual-key code
lKeyData = lParam;          // key data

nVirtKey
Value of wParam. Specifies the virtual-key code of the nonsystem key.
nlKeyData
Value of lParam. Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag.



김원창 님이 쓰신 글 :
: vb에서는 sendkey를 이용하여 다른 프로그램을 제어합니다. 이를 c++빌더에서 구현하는 방법을 아시는 분 부탁합니다

+ -

관련 글 리스트
24046 vb의 sendkey와 같은 함수를 C++builder에서 만드는 방법을 알려 주세요 김원창 749 2003/02/04
24048     Re:vb의 sendkey와 같은 함수를 C++builder에서 만드는 방법을 알려 주세요 임문환 1189 2003/02/05
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.