![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hello,
I`m searching for a method to get the focus of the actual selection. How can I check if the folder (in the navigationpane) has the focus and not one or more items? I want to different per code (VBA/API) if the focus is set to a folder (so the code should work with all items in the folder) or to 1 or more items. -- Peter Marchert [EDV-Service Marchert] Homepage: http://www.marchert.de Excel- und Outlookprogrammierung |
Ads |
#2
|
|||
|
|||
![]()
Ok, not longer important for me - I show a dialog to select, what the
user want to do. Thanks Peter Peter Marchert schrieb: Hello, I`m searching for a method to get the focus of the actual selection. How can I check if the folder (in the navigationpane) has the focus and not one or more items? I want to different per code (VBA/API) if the focus is set to a folder (so the code should work with all items in the folder) or to 1 or more items. -- Peter Marchert [EDV-Service Marchert] Homepage: http://www.marchert.de Excel- und Outlookprogrammierung |
#3
|
|||
|
|||
![]()
Am 22 Oct 2006 04:22:45 -0700 schrieb Peter Marchert:
Peter, you would have to use some Win32 APis. First you must get the handle for the windows (NetUIHWND class for the navi pane, SUPERGRID class for the explorer). Then you call the API GetFocus to get the handle of the window with the focus and compare that value with the other ones. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Hello, I`m searching for a method to get the focus of the actual selection. How can I check if the folder (in the navigationpane) has the focus and not one or more items? I want to different per code (VBA/API) if the focus is set to a folder (so the code should work with all items in the folder) or to 1 or more items. -- Peter Marchert [EDV-Service Marchert] Homepage: http://www.marchert.de Excel- und Outlookprogrammierung |
#4
|
|||
|
|||
![]()
Hi Michael,
thanks for your answer. Perhaps I need this in a future funciton. Peter Michael Bauer [MVP - Outlook] schrieb: Am 22 Oct 2006 04:22:45 -0700 schrieb Peter Marchert: Peter, you would have to use some Win32 APis. First you must get the handle for the windows (NetUIHWND class for the navi pane, SUPERGRID class for the explorer). Then you call the API GetFocus to get the handle of the window with the focus and compare that value with the other ones. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Hello, I`m searching for a method to get the focus of the actual selection. How can I check if the folder (in the navigationpane) has the focus and not one or more items? I want to different per code (VBA/API) if the focus is set to a folder (so the code should work with all items in the folder) or to 1 or more items. -- Peter Marchert [EDV-Service Marchert] Homepage: http://www.marchert.de Excel- und Outlookprogrammierung |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to move focus/selection to a particular contact/item in Explor | va | Outlook and VBA | 1 | September 29th 06 12:31 AM |
Copy mail item to one folder and then move it to another folder | LDMueller | Outlook - Using Forms | 1 | September 15th 06 04:15 PM |
Copying an item from one folder to another | Laughing John | Outlook and VBA | 4 | June 14th 06 01:46 PM |
Forwarding a mail from your sent item folder | [email protected] | Outlook - General Queries | 0 | March 22nd 06 07:13 PM |
how do i get an item into my calendar folder | EC | Outlook - Calandaring | 1 | March 13th 06 02:16 AM |