Wednesday, March 21, 2007

Widescreen hassles

The new format of the computer monitors and laptops are definitely good for watching movies, but not at all for regular web browsing. The increase in real estate can be better utilized by having two documents opened side by side and could improve some productivity. But the web pages in wide screen mode is annoying. I was searching for a tool which limits the browser window to be maximized only to 1024 pixels wide. Fooled around with msdn and thought that SetWindowPlacement would do the trick, but I was mistaken. Apparently it doesn't work with the explorer shell and the documentation doesn't say so. i found that there is another way that is handled by the individual applications. Each application can specify its maximized size. The message to handle is WM_GETMINMAXINFO. I would need to install a message hook to get into the application and handle for each of them. Still not clear whether its worth the try.