Using PeekMessage to intercept WM_SYSCOMMAND msg 
Author Message
 Using PeekMessage to intercept WM_SYSCOMMAND msg

cal state long beach student here...

I'm working on my final project and I'm trying to add an
'always on top' option to the system menu.  All the code
works _except_ for the PeekMessage loop that's supposed
to intercept the SYSCOMMAND message; the loop picks up the
WM_DROPFILES no problem so I'm sort of confused.  Why can't
I read both messages?  I can't even get VB to stop on
a breakpoint set in a Case WM_SYSCOMMAND section.

I've seen a lot in this newsgroup about msgblast.vbx and
I'm going to check that out next, but I'd really like to
avoid adding any VBX's if I can.

If it helps to know, the info I've been using came from
Daniel Appleman's VB programmers guide to the API; you
guys are right, it's a great book.

Thank you, goodbye now, take care....



Wed, 20 May 1998 03:00:00 GMT  
 Using PeekMessage to intercept WM_SYSCOMMAND msg

Quote:

>cal state long beach student here...

>I'm working on my final project and I'm trying to add an
>'always on top' option to the system menu.  All the code
>works _except_ for the PeekMessage loop that's supposed
>to intercept the SYSCOMMAND message; the loop picks up the
>WM_DROPFILES no problem so I'm sort of confused.  Why can't
>I read both messages?  I can't even get VB to stop on
>a breakpoint set in a Case WM_SYSCOMMAND section.

>I've seen a lot in this newsgroup about msgblast.vbx and
>I'm going to check that out next, but I'd really like to
>avoid adding any VBX's if I can.

>If it helps to know, the info I've been using came from
>Daniel Appleman's VB programmers guide to the API; you
>guys are right, it's a great book.

>Thank you, goodbye now, take care....


As i can't afford the book at this time... =( ... could you possible
forward me some information on how to intercept things with the peek
message command? i am looking to trap mouse clicks on the icons in the
system tray... thanks!

William J. Fisher
RedBird Softworks



Thu, 21 May 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Asking Excel Masters - Intercepting an Excel Msg

2. Intercept/Replace Win95 Error Msg

3. Q: Intercept Winsock Msg

4. Intercepting Close event through AutoClose macro ( also intercepting FilePrint and FileSave)

5. VB5 and WM_SYSCOMMAND

6. Subclassing form WM_SYSCOMMAND

7. Hiding a form by capturing WM_SYSCOMMAND

8. HOW TO in VB :Outlook MSG DROP in Explorer creates a MSG File

9. intercepting errors without using ADO Data control

10. intercepting errors without using ADO Data control

11. auto save email .msg in outlook using macro

12. Retrieving attachments and body from .msg files using a standalone application

 

 
Powered by phpBB® Forum Software