PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average.

Detect Window Minimize and Maximize

 
 
Justin Echternach
Guest
Posts: n/a
 
      17th Dec 2004
What is the best way to detect the minimization/maximization of any windows
program currently running?

Do I want to hook the desktop message pump?


 
Reply With Quote
 
 
 
 
Ajay Kalra
Guest
Posts: n/a
 
      18th Dec 2004
If you want to do this for any window(excluding your application in a
different process), you will need to create a system wide hook and trap
relevant message. Keep in mind that when you create a system wide hook, it
will loaded in all processes.

--
Ajay Kalra [MVP - VC++]
(E-Mail Removed)


"Justin Echternach" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> What is the best way to detect the minimization/maximization of any

windows
> program currently running?
>
> Do I want to hook the desktop message pump?
>
>



 
Reply With Quote
 
Justin Echternach
Guest
Posts: n/a
 
      18th Dec 2004
Is there a better way to accomplish this? Is there not one process I can
hook that will let me detect when any window is minimized or restored?

"Ajay Kalra" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> If you want to do this for any window(excluding your application in a
> different process), you will need to create a system wide hook and trap
> relevant message. Keep in mind that when you create a system wide hook, it
> will loaded in all processes.
>
> --
> Ajay Kalra [MVP - VC++]
> (E-Mail Removed)
>
>
> "Justin Echternach" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> What is the best way to detect the minimization/maximization of any

> windows
>> program currently running?
>>
>> Do I want to hook the desktop message pump?
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Shortcut Key to Minimize a Window or Maximize it ? Alex Nichol Windows XP General 4 8th Mar 2012 09:04 AM
Window Minimize/Maximize Issue Jeff Windows XP General 1 10th Feb 2009 11:32 PM
Window Minimize/Maximize Issue Jeff Windows XP General 0 10th Feb 2009 09:10 PM
which shortcut key is used to maximize or minimize a window? =?Utf-8?B?bmlyYXZyc2hhaDIw?= Microsoft Access 1 28th Nov 2004 07:45 PM
Maximize/minimize browser window DOB Windows XP Internet Explorer 0 23rd Oct 2003 04:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:41 AM.