|
-
Apr 28th, 2000, 12:03 PM
#1
Thread Starter
Addicted Member
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]
Dan PM
Analyst Programmer
VB6 SP3 (also VB4 16-bit sometimes  )
-
Apr 29th, 2000, 10:26 AM
#2
Thread Starter
Addicted Member
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!
Dan PM
Analyst Programmer
VB6 SP3 (also VB4 16-bit sometimes  )
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|