-
February 28th, 2013, 05:54 AM
#1
[RESOLVED] How to pass a struct to a dialog (winapi)
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));
...
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
|