| 发表于:2007-08-13 17:59:161楼 得分:0 |
在派生类的wm_lbuttondown响应函数里: if (::getcapture() != null) return false; afxlocktempmaps(); // protect maps while looping // set capture to the window which received this message setcapture(); updatewindow(); // get messages until capture lost or cancelled/accepted for (;;) { msg msg; verify(::getmessage(&msg, null, 0, 0)); if (cwnd::getcapture() != this) break; switch (msg.message) { // handle movement/accept messages case wm_lbuttonup: { goto exitloop; } break; } 在这里增加:m_itest++; sleep(555);这里自己控制 } exitloop: releasecapture(); afxunlocktempmaps(false); return true; | | |
|