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:
ImgList is the ImageList, and CmboEx is the ComboBoxEx (aka "ImageCombo") handler. Here is the code:Code: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)
Can somebody please tell me what I am doing wrong? I am just having a hard time figuring it out!Code:SendMessage CmboEx, CBEM_SETIMAGELIST, 0, ImgList




Reply With Quote