Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Macros > Loading Images ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 5648 of 5947
Post > Topic >>

Loading Images Into a Right Click Menu Options

by Jamie <jamiedora@[EMAIL PROTECTED] > Jul 21, 2008 at 06:20 AM

To anyone that can help:

I would like to images into a right click menu I have for an Access
application. So far, I load the menu, and my thought is using the
image list control, I grab the picture handle, compress it and load
it
into the menu, but it is not working? Does anyone have ideas or
suggestions?


CODE:


******


DoCmd.OpenForm sImageForm, acNormal, , , , acHidden      'Load image
form
Set frmImage = Forms(sImageForm).Form: Set imgList =
frmImage.frmImageList.Object
hMenuImg = imgList.ListImages.Item(mMenu.sImage(iMenuIndex)).Picture
iCopyDC = CreateCompatibleDC(0)
iRet = StretchBlt(iCopyDC, 0, 0, 12, 12, hMenuImg, 0, 0, 22, 22,
SRCCOPY)
Call SetMenuItemBitmaps(iCopyDC, 1, MF_BYPOSITION, hMenuImg,
hMenuImg)


******


Thanks,


Jamie
 




 1 Posts in Topic:
Loading Images Into a Right Click Menu Options
Jamie <jamiedora@[EMAI  2008-07-21 06:20:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 13:15:39 CST 2008.