VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Add bitmaps to your menu!

by mainframe (4 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 4th July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Add bitmaps to your menu!

API Declarations


Public Const MIIM_TYPE = &H10
Public Const MFT_STRING = &H0&
Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" ( _
ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Public Const SW_SHOWNORMAL As Long = 1
Public Const SW_SHOWMAXIMIZED As Long = 3
Public Const SW_SHOWDEFAULT As Long = 10

Rate Add bitmaps to your menu!



Dim lSuccess As Long
'-- Shell to default browser
lSuccess = ShellExecute(fH, "Open", strURL, 0&, 0&, iWindowStyle)
End Sub

Download this snippet    Add to My Saved Code

Add bitmaps to your menu! Comments

No comments have been posted about Add bitmaps to your menu!. Why not be the first to post a comment about Add bitmaps to your menu!.

Post your comment

Subject:
Message:
0/1000 characters