How to set desktop shortcut (icon) position

25 views
Skip to first unread message

Louis LaBrunda

unread,
Dec 7, 2020, 2:24:23 PM12/7/20
to VA Smalltalk
Hi All,

I would like to set desktop shortcut (icon) positions from Smalltalk code.  I think this can be done with windows API calls and that VA Smalltalk has ways of making these calls but I don't know what calls to make or how to get started.  Any help is greatly appreciated.

Lou

Mariano Martinez Peck

unread,
Dec 8, 2020, 7:54:13 AM12/8/20
to VA Smalltalk
Hi Louis,
I don't know which is the Windows API for it, but as for calling it from VA, you may want to take a look to OSCall, OSHandle, PlatformFunction, etc... 

Cheers,


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to va-smalltalk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/va-smalltalk/86212a83-6d10-4595-891c-ece3ea98e9acn%40googlegroups.com.


--
Mariano Martinez Peck
Software Engineer, Instantiations Inc.

Louis LaBrunda

unread,
Dec 8, 2020, 8:49:33 AM12/8/20
to VA Smalltalk
HI  Mariano ,

Thanks for the reply.  I am, in a general sense, familiar all those classes.  This is really less of a VA Smalltalk question and more a Windows API question.

I can get what I think is a handle to the desktop with OSHwnd getDesktopWindow.  There are other Windows functions like HdmGetitemcount, LvmGetitemcount and TcmGetitemcount that I think should get a count of the desktop shortcuts but every way I try to use them returns zero (0).  So, if someone knows ho to do this from a C (or other) program, an example would be a big help.  Thanks.

Lou
Reply all
Reply to author
Forward
0 new messages