-
What I'm doing is subclassing a ComboBox and trying to disable pasting to it by blocking the WM_PASTE message. However, this doesn't work for some reason. So next I tried listing off all of the messages sent to the ComboBox to see what was being sent to it exactly. What I got confused me even more! Whenever I did a paste (by pressing either <SHIFT>+<INSERT> or <CTRL>+<V> ) these are the mesages that were intercepted:
- WM_COMMAND (&H111)
- wParam = 0400 03E9 (EN_UPDATE + identifier of control)
- lParam = 6D8 (the control handle)
- WM_CTLCOLOREDIT (&H133)
- wParam = 5EE (varies a control Device Context handle)
- lParam = 6D8 (the control handle)
- WM_COMMAND (&H11)
- wParam = 0300 03E9 (EN_CHANGE + identifier of control)
- lParam = 6D8 (the control handle)
OK, so that's all fine and dandy, but how the hell does the Edit portion of the ComboBox receive the/a paste message? I tried it repeatedly and I always got this combination of messages. The odd thing is that I can send (and intercept) a WM_PASTE message to the ComboBox and it works fine!
Can anybody explain to me what is going on?
[Edited by SonGouki on 04-29-2000 at 01:04 AM]
-
Thanks to all those who looked at this thread, but it has been answered in the General Forum here by Aaron Young.
Thanks again Aaron!