I want to pass some parameters to a dialog. I am trying to pass a struct as LPARAM in CreateDialogParam.
How to access this structure from ONOK for example?
Code:
struct DlgParam{
std::wstring IEDllPath;
CString folderName;
};
...
DlgParam param;
param.folderName = folderName;
param.folderPath = folderPath;
hDlg = CreateDialogParam(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), 0, DialogProc, reinterpret_cast<LPARAM>(¶m));
...
How to access this structure from ONOK for example?
Code:
struct DlgParam{
std::wstring IEDllPath;
CString folderName;
};
...
DlgParam param;
param.folderName = folderName;
param.folderPath = folderPath;
hDlg = CreateDialogParam(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), 0, DialogProc, reinterpret_cast<LPARAM>(¶m));
...