Include dependency graph for win-dialogs.c:

Go to the source code of this file.
Defines | |
| #define | NMENUCOMMAND 50 |
| #define | LDIM 25 |
| #define | BDIM 22 |
| #define | IDIM 18 |
| #define | vertpad 0 |
| #define | horzpad 5 |
| #define | FIRSTCHAINID 100 |
| #define | FIRSTSLIDERID 200 |
| #define | FIRSTBUTTONID 300 |
| #define | FIRSTCOMMANDID 400 |
| #define | FIRSTHELPID 500 |
| #define | FIRSTOPTIONOK 600 |
| #define | BUTTONFLAGS WS_CHILD | WS_VISIBLE | WS_BORDER | BS_PUSHLIKE |
| #define | LOGICFLAGS WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX | BS_CENTER |
| #define | LABELFLAGS WS_CHILD | WS_VISIBLE | WS_BORDER | SS_CENTER | SS_NOTIFY |
| #define | CHAINFLAGS WS_CHILD | WS_VISIBLE | WS_BORDER | ES_CENTER |
| #define | SLIDERFLAGS WS_CHILD | WS_VISIBLE | TBS_NOTICKS | TBS_ENABLESELRANGE |
| #define | COMBOBOXFLAGS WS_CHILD | WS_VISIBLE | WS_BORDER | CBS_AUTOHSCROLL | CBS_DROPDOWN | CBS_HASSTRINGS |
Functions | |
| void | MyErrorHandler (char *str1, char *str2) |
| LRESULT APIENTRY | MainWndProc (HWND, UINT, UINT, LONG) |
| void | SetWidgetFont (HWND hwnd, HFONT hfont) |
| LRESULT APIENTRY | ChoiceSubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| LRESULT APIENTRY | EditSubclassProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| void | dialog_help (int idfilename, char *varname) |
| LRESULT APIENTRY | HelpWndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
| LRESULT APIENTRY | MainWndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
| DWORD | DialogFunc (LPDWORD lpdwParam) |
| void | on_end_dialog (void) |
| LRESULT APIENTRY | MenuWndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
| void | update_variable (sic_widget_def_t *widget) |
| DWORD | MenuFunc (const char *tempfilename) |
| BOOL APIENTRY | DllMain (HANDLE hInstance, DWORD ul_reason_being_called, LPVOID lpReserved) |
Variables | |
| int | fontheight |
| int | mainwidth |
| int | mainheight |
| int | viewportheight |
| int | commandheight |
| int | labelwidth = 200 |
| int | textwidth = 300 |
| int | sliderchainwidth = 50 |
| int | sliderwidth = 250 |
| int | filechainwidth = 250 |
| int | buttonwidth = 100 |
| int | morewidth = 150 |
| int | helpwidth = 50 |
| int | itemheight = LDIM |
| int | buttonheight = BDIM |
| int | chainheight = IDIM |
| int | labelheight = IDIM |
| int | choiceheight = LDIM |
| int | logicheight = IDIM |
| int | sliderheight = IDIM |
| HWND | labelw |
| HWND | editw |
| HWND | logicw |
| HWND | sliderw |
| HWND | buttonw |
| HWND | okw |
| HWND | cancelw |
| HWND | helpw |
| HWND | morewindows [MAX_NB_DIALOG] |
| HWND | editwin [NSTRUCT] |
| HWND | sliderwin [NSTRUCT] |
| HWND | logicwin [NSTRUCT] |
| HFONT | dialogfont = NULL |
| char * | dialoghelpname [MAX_NB_DIALOG] |
| int | nb_widgets |
| int | WIN0 = 0 |
| int | nmore = 0 |
| int | NEL [MAX_NB_DIALOG] |
| int | index [MAX_NB_DIALOG][NSTRUCT] |
| int | IDWIN [NSTRUCT] |
| int | INDEXCOM [MAX_NB_DIALOG] |
| int | screenheight |
| int | screenwidth |
| int | curheight [MAX_NB_DIALOG] |
| int | num_actions [NSTRUCT] |
| HGDIOBJ | DlgFont |
| HGDIOBJ | VarFont |
| char | clog [7] = "No\0Yes\0" |
| int | SCB |
| int | ERR_CODE |
| HINSTANCE | hInst |
| HWND | FrameWnd |
| HWND | hWnd |
| HWND | root_win |
| HANDLE | hThread = NULL |
| WORD * | pdlgtemplate |
| WORD * | save_cur_ptr |
| int | ncreate = 0 |
| char | dumstr [80] |
| WNDPROC | wpOrigEditProc |
| WNDPROC | wpOrigChoiceProc |
| POINT | caretpos |
| int | yoffset = 0 |
| SCROLLINFO | si |
| HWND | dialog_help_win [MAX_NB_DIALOG] |
| HWND | dialog_help_edit [MAX_NB_DIALOG] |
| char * | dialoghelptext |
| int | nhelpwcreate = 0 |
| int | firstpass = 1 |
| int | NewPos |
| int | PrevPos |
| FILE * | TempFile |
| char | TempName [256] |
| char | detach_help [256] |
| int | lastid |
| HWND | win_help = NULL |
| HWND | helpedit |
| HANDLE | hMenuThrd |
| char * | helptext |
| char | dum [256] |
| #define BDIM 22 |
Definition at line 19 of file win-dialogs.c.
| #define BUTTONFLAGS WS_CHILD | WS_VISIBLE | WS_BORDER | BS_PUSHLIKE |
| #define CHAINFLAGS WS_CHILD | WS_VISIBLE | WS_BORDER | ES_CENTER |
| #define COMBOBOXFLAGS WS_CHILD | WS_VISIBLE | WS_BORDER | CBS_AUTOHSCROLL | CBS_DROPDOWN | CBS_HASSTRINGS |
| #define FIRSTBUTTONID 300 |
| #define FIRSTCHAINID 100 |
| #define FIRSTCOMMANDID 400 |
| #define FIRSTHELPID 500 |
| #define FIRSTOPTIONOK 600 |
| #define FIRSTSLIDERID 200 |
| #define horzpad 5 |
| #define IDIM 18 |
Definition at line 20 of file win-dialogs.c.
| #define LABELFLAGS WS_CHILD | WS_VISIBLE | WS_BORDER | SS_CENTER | SS_NOTIFY |
| #define LDIM 25 |
Definition at line 18 of file win-dialogs.c.
| #define LOGICFLAGS WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX | BS_CENTER |
| #define NMENUCOMMAND 50 |
| #define SLIDERFLAGS WS_CHILD | WS_VISIBLE | TBS_NOTICKS | TBS_ENABLESELRANGE |
| #define vertpad 0 |
| LRESULT APIENTRY ChoiceSubclassProc | ( | HWND | hwnd, | |
| UINT | uMsg, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Definition at line 175 of file win-dialogs.c.
References editwin, global_struct::generic, index, nb_widgets, generic_struct::variable, and widgets.
Referenced by MainWndProc().
Here is the caller graph for this function:

| void dialog_help | ( | int | idfilename, | |
| char * | varname | |||
| ) |
Definition at line 323 of file win-dialogs.c.
References dialoghelpname, and hInst.
Referenced by MainWndProc().
Here is the caller graph for this function:

| DWORD DialogFunc | ( | LPDWORD | lpdwParam | ) |
Definition at line 1036 of file win-dialogs.c.
References BUTTON, global_struct::button, dialoghelpname, global_struct::generic, IDWIN, index, INDEXCOM, nb_widgets, nmore, num_actions, button_struct::showlength, widgets, and generic_struct::window_id.
Referenced by run_xinput().
Here is the caller graph for this function:

| BOOL APIENTRY DllMain | ( | HANDLE | hInstance, | |
| DWORD | ul_reason_being_called, | |||
| LPVOID | lpReserved | |||
| ) |
Definition at line 1513 of file win-dialogs.c.
References detach_win, dialoghelpname, DlgFont, fontheight, HelpWndProc(), hInst, MainWndProc(), MAX_NB_DIALOG, MenuWndProc(), MyErrorHandler(), NMENUCOMMAND, NWINDOWS, root_win, screenheight, screenwidth, and VarFont.
Here is the call graph for this function:

| LRESULT APIENTRY EditSubclassProc | ( | HWND | hwnd, | |
| UINT | uMsg, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Definition at line 202 of file win-dialogs.c.
References BROWSER, caretpos, global_struct::chain, CHAIN, chain_struct::editable, editwin, FrameWnd, global_struct::generic, hWnd, index, itemheight, mainheight, mainwidth, nb_widgets, si, global_struct::slider, SLIDER, sliderwin, generic_struct::type, generic_struct::variable, viewportheight, widgets, slider_struct::width, and yoffset.
Referenced by MainWndProc().
Here is the caller graph for this function:

| LRESULT APIENTRY HelpWndProc | ( | HWND | hwnd, | |
| UINT | message, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Definition at line 432 of file win-dialogs.c.
References dialoghelpname, and hInst.
Referenced by DllMain().
Here is the caller graph for this function:

| LRESULT APIENTRY MainWndProc | ( | HWND | hwnd, | |
| UINT | message, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Definition at line 476 of file win-dialogs.c.
References BROWSER, BUTTON, BUTTONFLAGS, buttonheight, buttonw, buttonwidth, cancelw, global_struct::chain, CHAIN, CHAINFLAGS, chainheight, global_struct::choice, CHOICE, choiceheight, ChoiceSubclassProc(), clog, COMBOBOXFLAGS, curheight, dialog_help(), dialogfont, dialoghelpname, dumstr, EditSubclassProc(), editw, editwin, ERR_CODE, global_struct::file, filechainwidth, FIRSTBUTTONID, FIRSTCHAINID, FIRSTCOMMANDID, FIRSTHELPID, FIRSTOPTIONOK, FIRSTSLIDERID, global_struct::generic, helpw, helpwidth, hInst, horzpad, hWnd, IDWIN, index, INDEXCOM, itemheight, file_struct::label, LABELFLAGS, labelheight, labelw, labelwidth, LOGIC, LOGICFLAGS, logicheight, logicw, logicwin, main_command, mainheight, mainwidth, MAX_NB_DIALOG, slider_struct::min, morewidth, morewindows, nb_widgets, choice_struct::nchoices, ncreate, okw, SCB, SetWidgetFont(), SHOW, si, global_struct::slider, SLIDER, sliderchainwidth, SLIDERFLAGS, sliderheight, sliderw, sliderwidth, sliderwin, textwidth, generic_struct::type, file_struct::userchain, chain_struct::userchain, choice_struct::userchoice, generic_struct::variable, vertpad, viewportheight, widgets, slider_struct::width, wpOrigChoiceProc, wpOrigEditProc, and yoffset.
Here is the call graph for this function:

| LRESULT APIENTRY MainWndProc | ( | HWND | , | |
| UINT | , | |||
| UINT | , | |||
| LONG | ||||
| ) |
| DWORD MenuFunc | ( | const char * | tempfilename | ) |
Definition at line 1424 of file win-dialogs.c.
References hInst, MyErrorHandler(), and screenwidth.
Here is the call graph for this function:

| LRESULT APIENTRY MenuWndProc | ( | HWND | hwnd, | |
| UINT | message, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Definition at line 1245 of file win-dialogs.c.
References detach_win, hInst, hWnd, NWINDOWS, and sic_post_command_text().
Referenced by DllMain().
Here is the call graph for this function:

Here is the caller graph for this function:

| void MyErrorHandler | ( | char * | str1, | |
| char * | str2 | |||
| ) |
Definition at line 64 of file win-dialogs.c.
Referenced by DllMain(), and MenuFunc().
Here is the caller graph for this function:

| void on_end_dialog | ( | void | ) |
Definition at line 1215 of file win-dialogs.c.
References curheight, ERR_CODE, firstpass, IDWIN, MAX_NB_DIALOG, nb_widgets, ncreate, nhelpwcreate, and NSTRUCT.
Referenced by end_dialog().
Here is the caller graph for this function:

| void SetWidgetFont | ( | HWND | hwnd, | |
| HFONT | hfont | |||
| ) |
Definition at line 159 of file win-dialogs.c.
Referenced by MainWndProc().
Here is the caller graph for this function:

| void update_variable | ( | sic_widget_def_t * | widget | ) |
Definition at line 1340 of file win-dialogs.c.
References CHAIN, global_struct::chain, CHOICE, global_struct::choice, choice_struct::choices, editwin, global_struct::generic, LOGIC, global_struct::logic, logicwin, slider_struct::min, choice_struct::nchoices, NSTRUCT, SLIDER, global_struct::slider, sliderwin, generic_struct::type, chain_struct::userchain, choice_struct::userchoice, logic_struct::userlogic, slider_struct::uservalue, generic_struct::variable, widgets, and slider_struct::width.
Referenced by run_xinput().
Here is the caller graph for this function:

| int buttonheight = BDIM |
| HWND buttonw |
| int buttonwidth = 100 |
| HWND cancelw |
| POINT caretpos |
| int chainheight = IDIM |
| int choiceheight = LDIM |
| char clog[7] = "No\0Yes\0" |
| int commandheight |
Definition at line 38 of file win-dialogs.c.
| int curheight[MAX_NB_DIALOG] |
| char detach_help[256] |
Definition at line 1236 of file win-dialogs.c.
| HWND dialog_help_edit[MAX_NB_DIALOG] |
Definition at line 320 of file win-dialogs.c.
| HWND dialog_help_win[MAX_NB_DIALOG] |
Definition at line 320 of file win-dialogs.c.
| HFONT dialogfont = NULL |
| char* dialoghelpname[MAX_NB_DIALOG] |
Definition at line 46 of file win-dialogs.c.
| char* dialoghelptext |
Definition at line 321 of file win-dialogs.c.
| HGDIOBJ DlgFont |
| char dum[256] |
Definition at line 1243 of file win-dialogs.c.
| char dumstr[80] |
| HWND editw |
| HWND editwin[NSTRUCT] |
Definition at line 44 of file win-dialogs.c.
Referenced by ChoiceSubclassProc(), EditSubclassProc(), MainWndProc(), and update_variable().
| int ERR_CODE |
| int filechainwidth = 250 |
| int firstpass = 1 |
| int fontheight |
| HWND FrameWnd |
| HWND helpedit |
Definition at line 1240 of file win-dialogs.c.
| char* helptext |
Definition at line 1242 of file win-dialogs.c.
| HWND helpw |
| int helpwidth = 50 |
| HINSTANCE hInst |
Definition at line 69 of file win-dialogs.c.
Referenced by dialog_help(), DllMain(), HelpWndProc(), MainWndProc(), MenuFunc(), and MenuWndProc().
| HANDLE hMenuThrd |
Definition at line 1241 of file win-dialogs.c.
| HANDLE hThread = NULL |
Definition at line 71 of file win-dialogs.c.
| HWND hWnd |
Definition at line 70 of file win-dialogs.c.
Referenced by EditSubclassProc(), MainWndProc(), and MenuWndProc().
| int IDWIN[NSTRUCT] |
Definition at line 49 of file win-dialogs.c.
Referenced by DialogFunc(), MainWndProc(), and on_end_dialog().
| int index[MAX_NB_DIALOG][NSTRUCT] |
Definition at line 49 of file win-dialogs.c.
Referenced by ChoiceSubclassProc(), DialogFunc(), EditSubclassProc(), and MainWndProc().
| int INDEXCOM[MAX_NB_DIALOG] |
| int itemheight = LDIM |
| int labelheight = IDIM |
| HWND labelw |
| int labelwidth = 200 |
| int lastid |
Definition at line 1238 of file win-dialogs.c.
| int logicheight = IDIM |
| HWND logicw |
| HWND logicwin[NSTRUCT] |
| int mainheight |
| int mainwidth |
| int morewidth = 150 |
| HWND morewindows[MAX_NB_DIALOG] |
| int nb_widgets |
Definition at line 47 of file win-dialogs.c.
Referenced by ChoiceSubclassProc(), DialogFunc(), EditSubclassProc(), get_user_input(), MainWndProc(), and on_end_dialog().
| int ncreate = 0 |
| int NEL[MAX_NB_DIALOG] |
Definition at line 47 of file win-dialogs.c.
| int NewPos |
Definition at line 474 of file win-dialogs.c.
| int nhelpwcreate = 0 |
| int nmore = 0 |
| int num_actions[NSTRUCT] |
| HWND okw |
| WORD* pdlgtemplate |
Definition at line 72 of file win-dialogs.c.
| int PrevPos |
Definition at line 474 of file win-dialogs.c.
| HWND root_win |
| WORD * save_cur_ptr |
Definition at line 72 of file win-dialogs.c.
| int SCB |
| int screenheight |
| int screenwidth |
| SCROLLINFO si |
| int sliderchainwidth = 50 |
| int sliderheight = IDIM |
| HWND sliderw |
| int sliderwidth = 250 |
| HWND sliderwin[NSTRUCT] |
Definition at line 44 of file win-dialogs.c.
Referenced by EditSubclassProc(), MainWndProc(), and update_variable().
| FILE* TempFile |
Definition at line 1234 of file win-dialogs.c.
| char TempName[256] |
Definition at line 1235 of file win-dialogs.c.
| int textwidth = 300 |
| HGDIOBJ VarFont |
| int viewportheight |
| int WIN0 = 0 |
Definition at line 47 of file win-dialogs.c.
| HWND win_help = NULL |
Definition at line 1240 of file win-dialogs.c.
| WNDPROC wpOrigChoiceProc |
| WNDPROC wpOrigEditProc |
| int yoffset = 0 |
1.5.1