packetVB
Dec 9th, 2002, 09:22 AM
Hi,
The 4th argument passed to this is a lpDialogFunction.
How do I pass a Class function into the api so i can handle the DlgProc in a class?
For example:
Class Form
{
public:
void CreateForm(HINSTANCE HInstance)
{
HWND tempH;
tempH=CreateDialogParam(hTInstance,MAKEINTRESOURCE(MyDialog),NULL,Form::HandleEvents,NULL);
}
BOOL CALLBACK HandleEvents(HWND dhwnd,UINT message, WPARAM wParam, LPARAM lParam)
{
.....SomeCodehere
}
};
I keep getting
converting from `BOOL (Form::*)(HWND__ *, unsigned int, unsigned int, long int)' to `BOOL (*)(HWND__ *, unsigned int, unsigned int, long int)'
Any help, greatly appreciated.
Thanks
:)
The 4th argument passed to this is a lpDialogFunction.
How do I pass a Class function into the api so i can handle the DlgProc in a class?
For example:
Class Form
{
public:
void CreateForm(HINSTANCE HInstance)
{
HWND tempH;
tempH=CreateDialogParam(hTInstance,MAKEINTRESOURCE(MyDialog),NULL,Form::HandleEvents,NULL);
}
BOOL CALLBACK HandleEvents(HWND dhwnd,UINT message, WPARAM wParam, LPARAM lParam)
{
.....SomeCodehere
}
};
I keep getting
converting from `BOOL (Form::*)(HWND__ *, unsigned int, unsigned int, long int)' to `BOOL (*)(HWND__ *, unsigned int, unsigned int, long int)'
Any help, greatly appreciated.
Thanks
:)