|
-
March 2nd, 2013, 12:51 PM
#6
Re: How to pass a struct to a dialog (winapi)
 Originally Posted by krs0
OK. Now I can access struct's members when I catch WM_INITDIALOG in my custom onInitDialog().
I still do not understand how to access/pass this struct from/to onButtonClicked().
Do you or don't use any C++ framework? If you do, Arjay is right, and you never need it be a separate structure. But if you don't, you need to invent some mechanism that allows the structure address be found by dialog window handle. Global map, or SetProp/GetProp typically do the trick.
Best regards,
Igor
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
|