VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Bold Menu Item With Win32 API's

Smoke  (1 Submission)   Windows API Call/Explanation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Makes a menu item bold (for defualt items) by using Windows API's.

Inputs
Call the function in the following manner: Call SetBold(Me, 1, 2) Arguments: ---------- Me = The form 1 = Menu index for mnuEdit 2 = Item index for mnuEditPaste

API Declarations
Private Declare Function GetMenu _
Lib "user32" ( _
ByVal hwnd As Long) As Long
Private Declare Function GetSubMenu _
Lib "user32" ( _
ByVal hMenu As Long, _
ByVal nPos As Long) As Long
Private Declare Function SetMenuDefaultItem _
Lib "user32" ( _
ByVal hMenu As Long, _
ByVal uItem As Long, _
ByVal fByPos As Long) As Long

Rate Bold Menu Item With Win32 API's (6(6 Vote))
Bold Menu Item With Win32 API's.bas

Bold Menu Item With Win32 API's Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters