dubae524
Jul 2nd, 2001, 08:09 PM
I guess I need to be more descriptive. I am using mainly the SendMessage API function and the CBEM_SETIMAGELIST constant in order to attach an ImageList to my API-created ComboBoxEx (aka "ImageCombo") control. Here are the declarations:
Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _
lParam As Any) As Long
WM_USER = &H400
CBEM_SETIMAGELIST = (WM_USER + 1)
ImgList is the ImageList, and CmboEx is the ComboBoxEx (aka "ImageCombo") handler. Here is the code:
SendMessage CmboEx, CBEM_SETIMAGELIST, 0, ImgList
Can somebody please tell me what I am doing wrong? I am just having a hard time figuring it out!
Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _
lParam As Any) As Long
WM_USER = &H400
CBEM_SETIMAGELIST = (WM_USER + 1)
ImgList is the ImageList, and CmboEx is the ComboBoxEx (aka "ImageCombo") handler. Here is the code:
SendMessage CmboEx, CBEM_SETIMAGELIST, 0, ImgList
Can somebody please tell me what I am doing wrong? I am just having a hard time figuring it out!