devxlogo

GetSystemIcon – Get a Windows standard icon as a StdPicture object

GetSystemIcon – Get a Windows standard icon as a StdPicture object

Private Declare Function LoadStandardIcon Lib "user32" Alias "LoadIconA" (ByVal _    hInstance As Long, ByVal lIconID As Long) As LongEnum SystemIconConstants    IDI_Application = 32512    IDI_Hand = 32513    IDI_Question = 32514    IDI_Exclamation = 32515    IDI_Asterisk = 32516    IDI_Windows = 32517End Enum' returns a Windows standard icon ' (e.g. the icons used in the Message Boxes)'' Requires the IconToPicture functionFunction GetSystemIcon(ByVal ID As SystemIconConstants) As StdPicture   'get the standard icon's handle by calling LoadStandardIcon and then   'convert it to a StdPicture object   Set GetSystemIcon = IconToPicture(LoadStandardIcon(0, ID))End Function

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist