I am writing an activeX control in Visual C++ 6.0
I would like to have an hWnd parameter in one of my methods, so that I can set the parent of a window from a seperate process, so it'll be a child window of the dialog the activeX (*.ocx) is embedded in.
I've tried making a method like this for example:
double CMyActiveXControlCtrl::Parent(HWND Parent);
SetParent(Parent, ... )
But it won't work because I have to add the method via right click on tree view item -> add method.
When that is done in the Visual C++ IDE, it still won't work because there is no hWnd parameter to select in the drop down menu, There is long, short, float, bool, LPCTSTR, OLE_HANDLE, etc but none of them are what I need. What do I need for setting a struct HWND__ * method parameter? What am I doing wrong?