Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VC++使用虛擬鍵碼的問題...

0 views
Skip to first unread message

Spot

unread,
Sep 3, 2003, 5:02:34 AM9/3/03
to
※ 引述《desig...@bbs.mgt.ncu.edu.tw (獨家試唱中的小平..)》之銘言:
> 程式碼如下...
> BOOL CCheck::PreTranslateMessage(MSG* pMsg)
> {
> switch(pMsg->wParam)
> {
> case VK_PRIOR: OnBrescan();
> return 1;
> break;
> case VK_NEXT: OnBNext(); //按下pagedown執行OnBNext()
> return 1;
> break;
> }
> return CDialog::PreTranslateMessage(pMsg);
> }
> ?> 但是我每次按PAGEDOWN它都跑兩次OnBNext()..
> 請問是那邊有問題??

加個 if (pMsg->message == WM_KEYDOWN)


--
  *    ╭──╮  *   .    ●   花花世界總紛紛 ̄ ̄◥
      │唉~│    /         ▕ 瀅瀠俗事擾心神 ▕
    ● ┴──╯   ★          ▕  智化虛無付一笑▕
    ◣:           *        ◣____誰知歡顏匿淚痕
█▇▆▆▅▅▄▄▃▃▂▂____________________________________________
     ~             ﹏  ...   Spot : 5906136

--
好康訊息!
Openfind 提供免費撥接電話:40508888
帳號:openfind 密碼:openfind
--
http://bbs.openfind.com.tw
※來源:61.218.*

0 new messages