koraykazgan
Programmer
Hi there,
I like to programm a Win32 application, without using MFC. I can create a Window by code, but it is not easy to design the entire window with all its controls on it. So I want to use a resource and put the controls onto the dialog resource. Then I want to use this resource as template for my windows.
With the CreateDialog function I can get the resources HWND. Then with the function ShowFucntion I display the dialog. But the dialog responds to no message. I have written a DialogMessageHandler function, which processes the events.
What I want to know is, how I bind the MessageHandler Function to the dialog.
I tried to cast the functions name to DLGPROC and then send it as parameter to the createdialog function, but I doesn't worked.
Thank a lot for your help,
Bye...
I like to programm a Win32 application, without using MFC. I can create a Window by code, but it is not easy to design the entire window with all its controls on it. So I want to use a resource and put the controls onto the dialog resource. Then I want to use this resource as template for my windows.
With the CreateDialog function I can get the resources HWND. Then with the function ShowFucntion I display the dialog. But the dialog responds to no message. I have written a DialogMessageHandler function, which processes the events.
What I want to know is, how I bind the MessageHandler Function to the dialog.
I tried to cast the functions name to DLGPROC and then send it as parameter to the createdialog function, but I doesn't worked.
Thank a lot for your help,
Bye...