E
Eric
Does anyone know any good tricks to get Outlook to use the same window
size when running and opening an Explorer via OLE, as when you run
Outlook from a shortcut or command-line?
When I launch Outlook by running Outlook.exe manually, like a normal
user would, it opens restored or maximized based on the last time I
closed Outlook. However when I use OLE, and I've tried a lot of
different methods, Outlook always opens in the "restored/normal"
window size, and never maximized. I know I can use
Explorer.WindowState to change that, but what I really want is for
Outlook to just open the new explorer just like as if the user had
launched Outlook.
About the best I can come up with is to use ShellExecute() to invoke
Outlook, like the user would, but then I don't have as much control
over the process, and I have to wait around until I can get the active
OLE objects to start working with them. Because after I open Outlook
I need to set a specific folder, and then also send some commands to
my COM add-in, so it isn't enough to just run "Outlook:inbox" for
example.
p.s.-Target versions are only 2000 and later.
size when running and opening an Explorer via OLE, as when you run
Outlook from a shortcut or command-line?
When I launch Outlook by running Outlook.exe manually, like a normal
user would, it opens restored or maximized based on the last time I
closed Outlook. However when I use OLE, and I've tried a lot of
different methods, Outlook always opens in the "restored/normal"
window size, and never maximized. I know I can use
Explorer.WindowState to change that, but what I really want is for
Outlook to just open the new explorer just like as if the user had
launched Outlook.
About the best I can come up with is to use ShellExecute() to invoke
Outlook, like the user would, but then I don't have as much control
over the process, and I have to wait around until I can get the active
OLE objects to start working with them. Because after I open Outlook
I need to set a specific folder, and then also send some commands to
my COM add-in, so it isn't enough to just run "Outlook:inbox" for
example.
p.s.-Target versions are only 2000 and later.