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

Ãö©ó BCB Message trapªº°ÝÃD

0 views
Skip to first unread message

Nouvelle

unread,
Oct 10, 2001, 10:56:49 AM10/10/01
to

請問攔截訊息要如何做?

class TMyControl : public TForm

{
protected:
void __fastcall MyWndProc(TMessage &Message);

BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_MOUSEMOVE, TMessage, MyWndProc)
END_MESSAGE_MAP(TForm)
};

void __fastcall TMyControl::MyWndProc(TMessage &Message)
{
...
ex. Form1->Caption="hi";
}
為什麼我這樣寫 mousemove 後 MyWndProc好像沒有執行
是那裡錯了嗎
謝謝
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: thccy11.Oz.nthu.edu.tw

0 new messages