Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 15th, 2005, 11:57 PM   #1
filMar
Newbie
 
Join Date: Dec 2005
Posts: 2
Rep Power: 0 filMar is on a distinguished road
handle for windows

Can I block the catching of messages of some window by it`s handle?
for example, i have a windows by title MyWindow and i know it`s HWND and I want to block the catching of WM_LBUTTONDOWN.
If I can then how?
filMar is offline   Reply With Quote
Old Dec 16th, 2005, 6:30 AM   #2
rsnd
Hobbyist Programmer
 
rsnd's Avatar
 
Join Date: Jun 2005
Location: Helltown
Posts: 162
Rep Power: 4 rsnd is on a distinguished road
What do you mean by "block"...
if you mean intercept...then use hooks...
if you mean "stop" then the easiest idea would be getting the address of the window procedure using getwindowlong and setting it to your own procedure using setwindowlong....and then transmitting only the messages/notifications you want.
__________________
Spread your wings and fly! Chicken!
rsnd is offline   Reply With Quote
Old Dec 19th, 2005, 1:05 AM   #3
filMar
Newbie
 
Join Date: Dec 2005
Posts: 2
Rep Power: 0 filMar is on a distinguished road
Thank you. I meaned intercept and it`s working
filMar is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:40 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC