-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting a selected file or folder #1340
Comments
What API specifically are you talking about? |
I believe it's IFolderView::GetFocusedItem, documented here: https://docs.microsoft.com/en-us/windows/desktop/api/shobjidl_core/nf-shobjidl_core-ifolderview-getfocuseditem |
pywin32 doesn't currently define IFolderView This is used for various Shell scenarios, for example: Manipulating the positions of desktop icons I can try to add it and do a pull request if you're interested? |
Sure, I'd welcome a good patch which adds support for |
Hi, sorry for the long post! I have quite a number of issues with
Some issues:
is generated into this ("void ppv", "PyObject_Asvoid", "PyObject_Freevoid(ppv)"):
I've fixed the SAL issue, adding feature to
Thanks! For information here's the code I've added to for parsing SAL which I currently only use to determine the real type name:
|
On 21/04/2022 8:26 pm, Simon Mourier wrote:
Hi, sorry for the long post!
I have quite a number of issues with|makegw|, especially
|makegwparse.py.| It seems this system doesn't support .h files from the
more relatively recent Windows SDK. I'm using this code:
I'm not at all surprised - I've not used it for many many years.
I've fixed the SAL issue, adding feature to |makegwparse.py| (see below)
but while I'm progressing, I face other issues. So, I would like to know
your thinking about this:
* Should try to modify|makegw.py makegwparse.py|to handle newer
constructs but I'm afraid it could break things.
I wouldn't worry about breaking things TBH - it's already broken, and
makegw is really a "run once" tool - ie, you can't really break it for
things it has already been run on.
* Should I just go ahead and use them as is and fix the resulting
|PyIFolderView.cpp |by hand? Note it still would be mean to add some
newer argument conversion function too since some arguments are not
yet known by shell.cpp.
I don't think I've ever used makegw without needing to hand-edit the
generated code.
A patch at github is the best way to propose specific changes.
Cheers,
Mark
|
Mentioning #2181, which I believe fixes this. |
Would it be possible to add support for getting a selected file or folder? I understand that the Windows API has GetFocusedItem, but I'm not aware of that within pywin. Thank you very much for your time.
The text was updated successfully, but these errors were encountered: