win-dialogs.c File Reference

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 Documentation

#define BDIM   22

Definition at line 19 of file win-dialogs.c.

#define BUTTONFLAGS   WS_CHILD | WS_VISIBLE | WS_BORDER | BS_PUSHLIKE

Definition at line 29 of file win-dialogs.c.

Referenced by MainWndProc().

#define CHAINFLAGS   WS_CHILD | WS_VISIBLE | WS_BORDER | ES_CENTER

Definition at line 32 of file win-dialogs.c.

Referenced by MainWndProc().

#define COMBOBOXFLAGS   WS_CHILD | WS_VISIBLE | WS_BORDER | CBS_AUTOHSCROLL | CBS_DROPDOWN | CBS_HASSTRINGS

Definition at line 34 of file win-dialogs.c.

Referenced by MainWndProc().

#define FIRSTBUTTONID   300

Definition at line 25 of file win-dialogs.c.

Referenced by MainWndProc().

#define FIRSTCHAINID   100

Definition at line 23 of file win-dialogs.c.

Referenced by MainWndProc().

#define FIRSTCOMMANDID   400

Definition at line 26 of file win-dialogs.c.

Referenced by MainWndProc().

#define FIRSTHELPID   500

Definition at line 27 of file win-dialogs.c.

Referenced by MainWndProc().

#define FIRSTOPTIONOK   600

Definition at line 28 of file win-dialogs.c.

Referenced by MainWndProc().

#define FIRSTSLIDERID   200

Definition at line 24 of file win-dialogs.c.

Referenced by MainWndProc().

#define horzpad   5

Definition at line 22 of file win-dialogs.c.

Referenced by MainWndProc().

#define IDIM   18

Definition at line 20 of file win-dialogs.c.

#define LABELFLAGS   WS_CHILD | WS_VISIBLE | WS_BORDER | SS_CENTER | SS_NOTIFY

Definition at line 31 of file win-dialogs.c.

Referenced by MainWndProc().

#define LDIM   25

Definition at line 18 of file win-dialogs.c.

#define LOGICFLAGS   WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX | BS_CENTER

Definition at line 30 of file win-dialogs.c.

Referenced by MainWndProc().

#define NMENUCOMMAND   50

Definition at line 17 of file win-dialogs.c.

Referenced by DllMain().

#define SLIDERFLAGS   WS_CHILD | WS_VISIBLE | TBS_NOTICKS | TBS_ENABLESELRANGE

Definition at line 33 of file win-dialogs.c.

Referenced by MainWndProc().

#define vertpad   0

Definition at line 21 of file win-dialogs.c.

Referenced by MainWndProc().


Function Documentation

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   
)

Referenced by DllMain().

Here is the caller graph for this function:

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:


Variable Documentation

int buttonheight = BDIM

Definition at line 41 of file win-dialogs.c.

Referenced by MainWndProc().

HWND buttonw

Definition at line 43 of file win-dialogs.c.

Referenced by MainWndProc().

int buttonwidth = 100

Definition at line 40 of file win-dialogs.c.

Referenced by MainWndProc().

HWND cancelw

Definition at line 43 of file win-dialogs.c.

Referenced by MainWndProc().

POINT caretpos

Definition at line 168 of file win-dialogs.c.

Referenced by EditSubclassProc().

int chainheight = IDIM

Definition at line 41 of file win-dialogs.c.

Referenced by MainWndProc().

int choiceheight = LDIM

Definition at line 42 of file win-dialogs.c.

Referenced by MainWndProc().

char clog[7] = "No\0Yes\0"

Definition at line 59 of file win-dialogs.c.

Referenced by MainWndProc().

int commandheight

Definition at line 38 of file win-dialogs.c.

int curheight[MAX_NB_DIALOG]

Definition at line 50 of file win-dialogs.c.

Referenced by MainWndProc(), and on_end_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

Definition at line 45 of file win-dialogs.c.

Referenced by MainWndProc().

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

Definition at line 57 of file win-dialogs.c.

Referenced by DllMain().

char dum[256]

Definition at line 1243 of file win-dialogs.c.

char dumstr[80]

Definition at line 157 of file win-dialogs.c.

Referenced by MainWndProc().

HWND editw

Definition at line 43 of file win-dialogs.c.

Referenced by MainWndProc().

HWND editwin[NSTRUCT]

Definition at line 44 of file win-dialogs.c.

Referenced by ChoiceSubclassProc(), EditSubclassProc(), MainWndProc(), and update_variable().

int ERR_CODE

Definition at line 62 of file win-dialogs.c.

Referenced by MainWndProc(), and on_end_dialog().

int filechainwidth = 250

Definition at line 40 of file win-dialogs.c.

Referenced by MainWndProc().

int firstpass = 1

Definition at line 473 of file win-dialogs.c.

Referenced by on_end_dialog().

int fontheight

Definition at line 36 of file win-dialogs.c.

Referenced by DllMain().

HWND FrameWnd

Definition at line 70 of file win-dialogs.c.

Referenced by EditSubclassProc().

HWND helpedit

Definition at line 1240 of file win-dialogs.c.

char* helptext

Definition at line 1242 of file win-dialogs.c.

HWND helpw

Definition at line 43 of file win-dialogs.c.

Referenced by MainWndProc().

int helpwidth = 50

Definition at line 40 of file win-dialogs.c.

Referenced by MainWndProc().

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]

Definition at line 49 of file win-dialogs.c.

Referenced by DialogFunc(), and MainWndProc().

int itemheight = LDIM

Definition at line 41 of file win-dialogs.c.

Referenced by EditSubclassProc(), and MainWndProc().

int labelheight = IDIM

Definition at line 41 of file win-dialogs.c.

Referenced by MainWndProc().

HWND labelw

Definition at line 43 of file win-dialogs.c.

Referenced by MainWndProc().

int labelwidth = 200

Definition at line 39 of file win-dialogs.c.

Referenced by MainWndProc().

int lastid

Definition at line 1238 of file win-dialogs.c.

int logicheight = IDIM

Definition at line 42 of file win-dialogs.c.

Referenced by MainWndProc().

HWND logicw

Definition at line 43 of file win-dialogs.c.

Referenced by MainWndProc().

HWND logicwin[NSTRUCT]

Definition at line 44 of file win-dialogs.c.

Referenced by MainWndProc(), and update_variable().

int mainheight

Definition at line 38 of file win-dialogs.c.

Referenced by EditSubclassProc(), and MainWndProc().

int mainwidth

Definition at line 38 of file win-dialogs.c.

Referenced by EditSubclassProc(), and MainWndProc().

int morewidth = 150

Definition at line 40 of file win-dialogs.c.

Referenced by MainWndProc().

HWND morewindows[MAX_NB_DIALOG]

Definition at line 44 of file win-dialogs.c.

Referenced by MainWndProc().

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

Definition at line 156 of file win-dialogs.c.

Referenced by MainWndProc(), and on_end_dialog().

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

Definition at line 430 of file win-dialogs.c.

Referenced by on_end_dialog().

int nmore = 0

Definition at line 47 of file win-dialogs.c.

Referenced by DialogFunc().

int num_actions[NSTRUCT]

Definition at line 51 of file win-dialogs.c.

Referenced by DialogFunc().

HWND okw

Definition at line 43 of file win-dialogs.c.

Referenced by MainWndProc().

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

Definition at line 70 of file win-dialogs.c.

Referenced by DllMain().

WORD * save_cur_ptr

Definition at line 72 of file win-dialogs.c.

int SCB

Definition at line 60 of file win-dialogs.c.

Referenced by MainWndProc().

int screenheight

Definition at line 50 of file win-dialogs.c.

Referenced by DllMain().

int screenwidth

Definition at line 50 of file win-dialogs.c.

Referenced by DllMain(), and MenuFunc().

SCROLLINFO si

Definition at line 173 of file win-dialogs.c.

Referenced by EditSubclassProc(), and MainWndProc().

int sliderchainwidth = 50

Definition at line 39 of file win-dialogs.c.

Referenced by MainWndProc().

int sliderheight = IDIM

Definition at line 42 of file win-dialogs.c.

Referenced by MainWndProc().

HWND sliderw

Definition at line 43 of file win-dialogs.c.

Referenced by MainWndProc().

int sliderwidth = 250

Definition at line 39 of file win-dialogs.c.

Referenced by MainWndProc().

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

Definition at line 39 of file win-dialogs.c.

Referenced by MainWndProc().

HGDIOBJ VarFont

Definition at line 57 of file win-dialogs.c.

Referenced by DllMain().

int viewportheight

Definition at line 38 of file win-dialogs.c.

Referenced by EditSubclassProc(), and MainWndProc().

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

Definition at line 167 of file win-dialogs.c.

Referenced by MainWndProc().

WNDPROC wpOrigEditProc

Definition at line 167 of file win-dialogs.c.

Referenced by MainWndProc().

int yoffset = 0

Definition at line 172 of file win-dialogs.c.

Referenced by EditSubclassProc(), and MainWndProc().


Generated on Tue Mar 13 15:22:03 2007 for SIC by  doxygen 1.5.1