J
Jordi Rico
Hi,
it's difficult for me trying to explain what I need to do, as English
is not my main language.
I'm building an application which will consist of a single form. This
single form must be always visible (TopMost = true), and placed just
above the Task Bar (all the PCs where our application will be
installed will be running XP), with a height of about 2 or 3 "Task
Bars".
The problem is, when the user wants to maximize any other application
(IE, Firefox, Office, etc.), the bottom part of this application will
hide behind our application. What we want to do is change the max size
any window can resize when the user clicks on "Maximize".
I've searched everywhere, but can't find anything useful. I've tried P/
Invoke to hook global events to capture the resize event of the
windows with no luck, as the only valid examples I find is to hook
mouse or keyboard events, but not window resizing events. In one case
I found one example code which in theory managed resizing events, but
after trying it, it only hooked windows created from my application.
If you know any way to solve this, I'll appreciate your help.
PD: If the way of doing this is changing a value in Windows Registry,
wouldn't be a problem as we have direct access to all the PCs running
this application.
it's difficult for me trying to explain what I need to do, as English
is not my main language.
I'm building an application which will consist of a single form. This
single form must be always visible (TopMost = true), and placed just
above the Task Bar (all the PCs where our application will be
installed will be running XP), with a height of about 2 or 3 "Task
Bars".
The problem is, when the user wants to maximize any other application
(IE, Firefox, Office, etc.), the bottom part of this application will
hide behind our application. What we want to do is change the max size
any window can resize when the user clicks on "Maximize".
I've searched everywhere, but can't find anything useful. I've tried P/
Invoke to hook global events to capture the resize event of the
windows with no luck, as the only valid examples I find is to hook
mouse or keyboard events, but not window resizing events. In one case
I found one example code which in theory managed resizing events, but
after trying it, it only hooked windows created from my application.
If you know any way to solve this, I'll appreciate your help.
PD: If the way of doing this is changing a value in Windows Registry,
wouldn't be a problem as we have direct access to all the PCs running
this application.