|
-
Dec 9th, 2002, 10:22 AM
#1
Thread Starter
Hyperactive Member
CreateDialogParam, help please
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|