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
[6784] [또질문]일반어플리케이션에서 Active Form으로 변환 할때...keydown event 되지 않네여
허접푸케케 [] 2138 읽음    2001-04-13 00:33
일반어플리케이션에서 keydown event가 잘 동작했는데...
Active Form으로 변환하니깐..keydown event가 완전히 먹통이네여...
왜 이런 현상이 나는지 ..........후미............
원격제어하는 프로그램인데.......
마우스는 잘 동작하거든여..그런데...키보드.....ㅠ.ㅠ
고수님들 좀 갈켜줘여......................
지금 무지하게 급합니다..............고수님 아님 중수님..아님 하수님도 괜찮아여..
허접같은 질문 봐줘서 감사합니다...........ㅠ.ㅠ

void __fastcall Tfctl::ActiveFormKeyDown(TObject *Sender, WORD &Key,
      TShiftState Shift)
{
  ShowMessage("key start");<- 이 메세지도 안나오거든여...ㅠ.ㅠ
  unsigned char tmpc[2];
  t = 0;
if(ClientSocket3->Socket->Connected==false) return;
//**  ->
if(Key == 37 || Key == 38 || Key == 39 || Key == 40)
   {
    keybd_event(144,0,0,0);
    keybd_event(144,0,KEYEVENTF_KEYUP,0);
   }
//**  <-
tmpc[0]='D';
tmpc[1]=(unsigned char)Key;
ClientSocket3->Socket->SendBuf(tmpc,2);*/
}
//---------------------------------------------------------------------------
void __fastcall Tfctl::ActiveFormKeyUp(TObject *Sender, WORD &Key,
      TShiftState Shift)
{
unsigned char tmpc[2];
ShowMessage("key up");
if(ClientSocket3->Socket->Connected==false) return;

t = 0;
tmpc[0]='U';
tmpc[1]=(unsigned char)Key;
ClientSocket3->Socket->SendBuf(tmpc,2);
}
//---------------------------------------------------------------------------
void __fastcall Tfctl::Image1MouseMove(TObject *Sender, TShiftState Shift,
      int X, int Y)
{
t = 0;
if(ClientSocket4->Socket->Connected==false) return;
wsprintf(Rev_Buf,"0%04d%04d",X,Y);
ret=ClientSocket4->Socket->SendBuf(Rev_Buf,9);
}
//---------------------------------------------------------------------------

+ -

관련 글 리스트
6784 [또질문]일반어플리케이션에서 Active Form으로 변환 할때...keydown event 되지 않네여 허접푸케케 2138 2001/04/13
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.