About ActiveX Control
-
Hello I want to add System Tray menu in activex control, but i dont know how to do it? Any body tell me is it possible to do it? And possible then let me know how to do it? Thanks in advance
Manish Patel. B.E. - Information Technology.
-
Hello I want to add System Tray menu in activex control, but i dont know how to do it? Any body tell me is it possible to do it? And possible then let me know how to do it? Thanks in advance
Manish Patel. B.E. - Information Technology.
-
See in MSDN the following:
NOTIFYICONDATA //Struct
Shell_NotifyIcon ()Come online at:- jubinc@skype
Thanks for your reply. Now another problem is how to get HINSTANCE in activex control? I can get it in win32 application but how to get it in activex control? Please help me out
Manish Patel. B.E. - Information Technology.
-
Thanks for your reply. Now another problem is how to get HINSTANCE in activex control? I can get it in win32 application but how to get it in activex control? Please help me out
Manish Patel. B.E. - Information Technology.
Hi you can use AfxGetInstanceHandle() if u r using MFC or if it is Win32 HANDLE hModule in dllmain function is the HINSTANCE.
-
Hi you can use AfxGetInstanceHandle() if u r using MFC or if it is Win32 HANDLE hModule in dllmain function is the HINSTANCE.
Thank you for reply i am not getting your reply. I want to handle all mouse events that are occuring in windows(out side of activex control also). Is it possible? if it then how can i do it?
Manish Patel. B.E. - Information Technology.
-
Thank you for reply i am not getting your reply. I want to handle all mouse events that are occuring in windows(out side of activex control also). Is it possible? if it then how can i do it?
Manish Patel. B.E. - Information Technology.
your Question : "Now another problem is how to get HINSTANCE in activex control? I can get it in win32 application but how to get it in activex control? Please help me out" Answer: To get the instance of an activex control you can use AfxGetInstanceHandle() in MFC. eg: g_hInstance = AfxGetInstanceHandle(); or if u are developing a Win32 ActiveX Control you can use HANDLE hModule in dllmain function is the HINSTANCE. like this way - int Dllmain(HMODULE hModule...) { g_hInstance = (HINSTANCE) hModule; ...................... ...................... } i think now u got what i mean?