-----Original Message-----
From: Nicolas Raitman [mailto:new_world@r...]
Sent: 18 August 2000 01:44
To: feedback@w...
Subject: Visual Basic 6 Win32 API Tutorial
Mr. Jason Bock: Hi my name is Nicolas Raitman, i'm 17 and i'm from
Argentina. I'm reading your book and in the first place I would like to
tell
you that it is very interesting the way you face teaching this subject. As
regards chapter 4, the last part, when you explain the APIs to add bitmaps
to the menus i have a doubt.
I have done a program that has a menu. A subemu called mnuFile. An item
under mnuFile called mnuLine. And the item (i dont know if it should be
called like this) has to more items inside it called mnuLine1 and
mnuLine2.
So:
mnuFile
---mnuLine
------mnuLine1
------mnuLine2
The problem is that im trying to add a bitmap to mnuline, mnuline1 and
mnuline2. The following code is to add a bitmap to mnuline:
lngMenu = GetMenu(Me.hwnd)
lngSubMenu = GetSubMenu(lngMenu, 0)
lngMenuItemId = GetMenuItemID(lngSubMenu, 0)
lngRet = SetMenuItemBitmaps(lngMenu, lngMenuItemId, &H4&,
Picture1.Picture,
Picture1.Picture)
The picture size is less than 13. I guess the problem is because mnuLine
is
not a normal item since it has subitems. So the question is how can i add
bitmaps to the mnuLine and mnuLine1 and mnuLine2.
Thanks a lot!!!!
Nicolas