disable title bar double click action

rjplante

Well-known Member
Joined
Oct 31, 2008
Messages
574
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet in Excel 2007 and I have the macro language that expands the window to full screen, removes the function of the maximize and minimize window buttons, and disables the close functions. I would like to disable the ability of the user to double click on the title bar and have it maximize or minimize the window. How do I do this? I would also like to have the window cover the task bar at the bottom of the screen. Is this even possible?

Thanks,

Robert
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
To disable the double-click on the title bar I think you would have to trap the mouse events, using Windows API calls, allowing the event if it isn't on your Excel window. An alternative would be to remove the title bar altogether, again using the Windows API.

For the task bar, there is an auto-hide setting in the Windows GUI, which makes it appear only when the mouse pointer approaches the bottom of the screen. It may be possible to change the auto-hide setting programmatically using the Windows API.
 
Upvote 0

Forum statistics

Threads
1,224,608
Messages
6,179,872
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top