Joseph Ferner
April 22nd, 1999, 02:08 AM
I can't create a window correctly in non-MFC.
I want to self contain the Config Dialog in a seperate class but I can't get to the Proc within the class then how do I get this code to work.
The problem is with the 4th parameter of "DialogBox"
int CConfigDlg::Create( HINSTANCE hInstance, HWND hParent )
{
return DialogBox( hInstance, MAKEINTRESOURCE(IDD_DIALOG_CONFIG), hParent, ConfigProc );
}
BOOL CALLBACK CConfigDlg::ConfigProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
.
.
.
}
I want to self contain the Config Dialog in a seperate class but I can't get to the Proc within the class then how do I get this code to work.
The problem is with the 4th parameter of "DialogBox"
int CConfigDlg::Create( HINSTANCE hInstance, HWND hParent )
{
return DialogBox( hInstance, MAKEINTRESOURCE(IDD_DIALOG_CONFIG), hParent, ConfigProc );
}
BOOL CALLBACK CConfigDlg::ConfigProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
.
.
.
}