Hi. I'm developing an ActiveX control in VB 6.0 wich has it's own menu. It raises when clicking the second button of the mouse, therefore it's a contextual or emergent menu. I have tried to put icons in this menu with API's, but meanwhile it runs in a form, I cannot do it in an Usercontrol. I have realized that the GetMenu API function retrieves a long number in a form, and if it's ok, the number is more than zero always, by the opposite something is wrong or the form has no menu. But migrating this code onto a control, the GetMenu function always returns zero, such as it had no menu. I have searched and searched but I have not found anything to resolve this issue. Can you help me? How can I put icons in my OCX's menu? Sorry by my English, I'm spanish.
|