mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 09:37:34 -05:00
Add the ability to allocate extra per-dialog-instance private data
in the portable dialog interface. This has allowed me to remove `ssd->savedsession' in config.c, which was (I believe) the only out-of-place piece of per-instance data in the dialog template stuff. Now we should actually be able to run more than one config box in the same process at the same time (for platforms that'll find that useful). [originally from svn r2925]
This commit is contained in:
@ -166,10 +166,11 @@ struct dlgparam {
|
||||
char *errtitle; /* title of error sub-messageboxes */
|
||||
void *data; /* data to pass in refresh events */
|
||||
union control *focused, *lastfocused; /* which ctrl has focus now/before */
|
||||
char shortcuts[128]; /* track which shortcuts in use */
|
||||
int coloursel_wanted; /* has an event handler asked for
|
||||
* a colour selector? */
|
||||
char shortcuts[128]; /* track which shortcuts in use */
|
||||
struct { unsigned char r, g, b, ok; } coloursel_result; /* 0-255 */
|
||||
tree234 *privdata; /* stores per-control private data */
|
||||
int ended, endresult; /* has the dialog been ended? */
|
||||
};
|
||||
|
||||
@ -283,6 +284,10 @@ int winctrl_handle_command(struct dlgparam *dp, UINT msg,
|
||||
void winctrl_rem_shortcuts(struct dlgparam *dp, struct winctrl *c);
|
||||
int winctrl_context_help(struct dlgparam *dp, HWND hwnd, int id);
|
||||
|
||||
void dp_init(struct dlgparam *dp);
|
||||
void dp_add_tree(struct dlgparam *dp, struct winctrls *tree);
|
||||
void dp_cleanup(struct dlgparam *dp);
|
||||
|
||||
/*
|
||||
* Exports from wincfg.c.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user