#include "WndConsoleParentProc.h"#include "wtext.h"Include dependency graph for WndConsoleParentProc.c:

Go to the source code of this file.
Functions | |
| LPTW | GetTextWinScilab (void) |
| char * | GetScilabDirectory (BOOL UnixStyle) |
| BOOL | IsWindowInterface (void) |
| void | SwitchConsole (void) |
| void | SaveCurrentLine (BOOL RewriteLineAtPrompt) |
| void | WriteRegistryTxt (LPTW lptw) |
| void | SendCTRLandAKey (int code) |
| void | WriteIntoKeyBuffer (LPTW lptw, char *StringCommand) |
| void | InitIhmDefaultColor (void) |
| BOOL | SetIhmSystemDefaultTextBackgroundColor (void) |
| BOOL | ReceiveFromAnotherScilab (HWND hWndSend, PCOPYDATASTRUCT MyCopyDataStruct) |
| BOOL | GetCommandFromAnotherScilab (char *TitleWindowSend, char *CommandLine) |
| BOOL | ActivateTransparencyMode (HWND hWnd) |
| BOOL | SetIhmSystemDefaultTextColor (void) |
| BOOL | ON_WND_CONSOLE_WM_COPYDATA (HWND hwnd, HWND hWndSend, PCOPYDATASTRUCT MyCopyDataStruct) |
| BOOL | ON_WND_CONSOLE_WM_CLOSE (HWND hwnd) |
| BOOL | ON_WND_CONSOLE_WM_DESTROY (HWND hwnd) |
| BOOL | ON_WND_CONSOLE_WM_CREATE (HWND hwnd, LPCREATESTRUCT lpCreateStruct) |
| BOOL | ON_WND_CONSOLE_WM_DROPFILES (HWND hwnd, HDROP hDrop) |
| BOOL | ON_WND_CONSOLE_WM_PAINT (HWND hwnd) |
| BOOL | ON_WND_CONSOLE_WM_SYSCOLORCHANGE (HWND hwnd) |
| BOOL | ON_WND_CONSOLE_WM_COMMAND (HWND hwnd, int id, HWND hwndCtl, UINT codeNotify) |
| BOOL | ON_WND_CONSOLE_WM_EXITSIZEMOVE (void) |
| BOOL | ON_WND_CONSOLE_WM_ENTERSIZEMOVE (void) |
| BOOL | ON_WND_CONSOLE_WM_SIZE (HWND hwnd, UINT state, int cx, int cy) |
| BOOL | ON_WND_CONSOLE_WM_GETMINMAXINFO (HWND hwnd, LPMINMAXINFO lpMinMaxInfo) |
| BOOL | ON_WND_CONSOLE_WM_SETFOCUS (HWND hwnd, HWND hwndOldFocus) |
| BOOL | ON_WND_CONSOLE_WM_SYSCOMMAND (HWND hwnd, WPARAM wParam, LPARAM lParam) |
| BOOL | ON_WND_CONSOLE_WM_ENDSESSION (HWND hwnd, WPARAM wParam, LPARAM lParam) |
| EXPORT LRESULT CALLBACK | WndParentProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
Variables | |
| POINT | ScreenMinSize |
| char | ScilexConsoleName [MAX_PATH] |
| char | ScilexWindowName [MAX_PATH] |
| BOOL ActivateTransparencyMode | ( | HWND | hWnd | ) |
Definition at line 29 of file Transparency.c.
00030 { 00031 BOOL bOK=FALSE; 00032 TransparencyON=TRUE; 00033 bOK=TRUE; 00034 00035 return bOK; 00036 }
| BOOL GetCommandFromAnotherScilab | ( | char * | TitleWindowSend, | |
| char * | CommandLine | |||
| ) |
Definition at line 14 of file wmcopydata.c.
References FALSE, LineFromAnotherScilab, ReceiveDatafromAnotherScilab, TitleScilabSend, and TRUE.
Referenced by ON_WND_CONSOLE_WM_COPYDATA().
00015 { 00016 BOOL Retour=FALSE; 00017 00018 if (ReceiveDatafromAnotherScilab) 00019 { 00020 if (wsprintf(CommandLine,"%s",LineFromAnotherScilab) <= 0) return FALSE; 00021 wsprintf(TitleWindowSend,"%s",TitleScilabSend); 00022 00023 ReceiveDatafromAnotherScilab=FALSE; 00024 Retour=TRUE; 00025 } 00026 else 00027 { 00028 Retour=FALSE; 00029 } 00030 00031 return Retour; 00032 }
Here is the caller graph for this function:

| char* GetScilabDirectory | ( | BOOL | UnixStyle | ) |
Definition at line 64 of file SciEnv.c.
00065 { 00066 LPSTR ScilabModuleName=NULL; 00067 char drive[_MAX_DRIVE]; 00068 char dir[_MAX_DIR]; 00069 char fname[_MAX_FNAME]; 00070 char ext[_MAX_EXT]; 00071 00072 char *SciPathName=NULL; 00073 char *DirTmp=NULL; 00074 00075 ScilabModuleName = (LPSTR) MALLOC (MAXSTR + 1); 00076 00077 if (!GetModuleFileName ((HINSTANCE)GetModuleHandle(MSG_SCIMSG9), (LPSTR) ScilabModuleName, MAXSTR)) 00078 { 00079 if (ScilabModuleName) {FREE(ScilabModuleName);ScilabModuleName=NULL;} 00080 return NULL; 00081 } 00082 00083 _splitpath(ScilabModuleName,drive,dir,fname,ext); 00084 if (ScilabModuleName) {FREE(ScilabModuleName);ScilabModuleName=NULL;} 00085 if (dir[strlen(dir)-1] == '\\') dir[strlen(dir)-1] = '\0'; 00086 00087 DirTmp=strrchr (dir, '\\'); 00088 if (strlen(dir)-strlen(DirTmp)>0) 00089 { 00090 dir[strlen(dir)-strlen(DirTmp)] = '\0'; 00091 } 00092 else return NULL; 00093 00094 SciPathName=(char*)MALLOC((int)(strlen(drive)+strlen(dir)+5)*sizeof(char)); 00095 00096 _makepath(SciPathName,drive,dir,NULL,NULL); 00097 00098 if ( UnixStyle ) 00099 { 00100 int i=0; 00101 for (i=0;i<(int)strlen(SciPathName);i++) 00102 { 00103 if (SciPathName[i]=='\\') SciPathName[i]='/'; 00104 } 00105 } 00106 SciPathName[strlen(SciPathName)-1]='\0'; 00107 setSCIpath(SciPathName); 00108 return SciPathName; 00109 }
| LPTW GetTextWinScilab | ( | void | ) |
| void InitIhmDefaultColor | ( | void | ) |
Definition at line 111 of file ihmcolor.c.
00112 { 00113 CurrentIHMTextColor=GetSysColor(COLOR_WINDOWTEXT); 00114 CurrentIHMTextBackgroundColor=GetSysColor(COLOR_WINDOW); 00115 }
| BOOL IsWindowInterface | ( | void | ) |
| BOOL ON_WND_CONSOLE_WM_CLOSE | ( | HWND | hwnd | ) |
Definition at line 95 of file WndConsoleParentProc.c.
References GetTextWinScilab(), tagTW::hWndParent, tagTW::hWndText, and TRUE.
Referenced by WndParentProc().
00096 { 00097 LPTW lptw=GetTextWinScilab(); 00098 SendMessage(lptw->hWndText,WM_CLOSE,(WPARAM)lptw->hWndParent,0); 00099 return TRUE; 00100 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_COMMAND | ( | HWND | hwnd, | |
| int | id, | |||
| HWND | hwndCtl, | |||
| UINT | codeNotify | |||
| ) |
Definition at line 203 of file WndConsoleParentProc.c.
References GetTextWinScilab(), tagTW::hWndText, SetFocus(), and TRUE.
Referenced by WndParentProc().
00204 { 00205 LPTW lptw=GetTextWinScilab(); 00206 00207 WPARAM wParam=id; 00208 LPARAM lParam=(LPARAM)hwndCtl; 00209 00210 if ( IsWindow (lptw->hWndText) ) SetFocus (lptw->hWndText); 00211 00212 /* pass on menu commands */ 00213 SendMessage (lptw->hWndText, WM_COMMAND, wParam,lParam); 00214 00215 return TRUE; 00216 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_COPYDATA | ( | HWND | hwnd, | |
| HWND | hWndSend, | |||
| PCOPYDATASTRUCT | MyCopyDataStruct | |||
| ) |
Definition at line 83 of file WndConsoleParentProc.c.
References GetCommandFromAnotherScilab(), MAX_PATH, ReceiveFromAnotherScilab(), StoreCommand1(), and TRUE.
Referenced by WndParentProc().
00084 { 00085 char Command[MAX_PATH]; 00086 char TitleWndSend[MAX_PATH]; 00087 00088 ReceiveFromAnotherScilab(hWndSend,MyCopyDataStruct); 00089 00090 if ( GetCommandFromAnotherScilab(TitleWndSend,Command) )StoreCommand1 (Command, 0); 00091 00092 return TRUE; 00093 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_CREATE | ( | HWND | hwnd, | |
| LPCREATESTRUCT | lpCreateStruct | |||
| ) |
Definition at line 113 of file WndConsoleParentProc.c.
References MAX_PATH, NULL, SCI_VERSION_STRING, ScilexConsoleName, ScilexWindowName, and TRUE.
Referenced by WndParentProc().
00114 { 00115 LPTW lptw = lpCreateStruct->lpCreateParams; 00116 00117 SetWindowLong (hwnd, 0, (LONG) lptw); 00118 lptw->hWndParent = hwnd; 00119 /* get character size */ 00120 00121 DragAcceptFiles (hwnd, TRUE); 00122 00123 /* Modification Allan CORNET 15/07/03 */ 00124 /* Renomme la fenetre avec SCI_VERSION_STRING et numero x associé à la console*/ 00125 { 00126 char CopyNameConsole[MAX_PATH]; 00127 char *FirstOccurence; 00128 char *SecondOccurence; 00129 00130 strcpy(CopyNameConsole,ScilexConsoleName); 00131 FirstOccurence = strtok(CopyNameConsole,"("); 00132 SecondOccurence= strtok(NULL,"("); 00133 wsprintf(ScilexWindowName,"%s (%s",SCI_VERSION_STRING,SecondOccurence); 00134 00135 SetWindowText(hwnd,ScilexWindowName); 00136 } 00137 return TRUE; 00138 }
Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_DESTROY | ( | HWND | hwnd | ) |
Definition at line 102 of file WndConsoleParentProc.c.
References FALSE, GetTextWinScilab(), tagTW::hfont, and TRUE.
Referenced by WndParentProc().
00103 { 00104 LPTW lptw=GetTextWinScilab(); 00105 00106 DragAcceptFiles (hwnd, FALSE); 00107 DeleteFont (lptw->hfont); 00108 lptw->hfont = 0; 00109 00110 return TRUE; 00111 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_DROPFILES | ( | HWND | hwnd, | |
| HDROP | hDrop | |||
| ) |
Definition at line 140 of file WndConsoleParentProc.c.
References DragFunc(), GetTextWinScilab(), and TRUE.
Referenced by WndParentProc().
00141 { 00142 LPTW lptw=GetTextWinScilab(); 00143 DragFunc (lptw,hDrop); 00144 return TRUE; 00145 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_ENDSESSION | ( | HWND | hwnd, | |
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Definition at line 289 of file WndConsoleParentProc.c.
References TRUE.
Referenced by WndParentProc().
00290 { 00291 return TRUE; 00292 }
Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_ENTERSIZEMOVE | ( | void | ) |
Definition at line 229 of file WndConsoleParentProc.c.
References FALSE, SaveCurrentLine(), and TRUE.
Referenced by WndParentProc().
00230 { 00231 SaveCurrentLine(FALSE); 00232 return TRUE; 00233 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_EXITSIZEMOVE | ( | void | ) |
Definition at line 218 of file WndConsoleParentProc.c.
References copycur_line, CTRLU, GetTextWinScilab(), SendCTRLandAKey(), TRUE, WriteIntoKeyBuffer(), and WriteRegistryTxt().
Referenced by WndParentProc().
00219 { 00220 LPTW lptw=GetTextWinScilab(); 00221 extern char copycur_line[1024]; 00222 00223 WriteRegistryTxt(lptw); /* Sauvegarde Position apres deplacement et redimensionnement */ 00224 SendCTRLandAKey(CTRLU); /* Scrollbar */ 00225 WriteIntoKeyBuffer(lptw,copycur_line); 00226 return TRUE; 00227 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_GETMINMAXINFO | ( | HWND | hwnd, | |
| LPMINMAXINFO | lpMinMaxInfo | |||
| ) |
Definition at line 253 of file WndConsoleParentProc.c.
References TRUE.
Referenced by WndParentProc().
00254 { 00255 POINT *MMinfo = (POINT *) lpMinMaxInfo; 00256 /* minimum size */ 00257 /* same minimum size as Linux */ 00258 MMinfo[3].x = 400; 00259 MMinfo[3].y =320; 00260 return TRUE; 00261 }
Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_PAINT | ( | HWND | hwnd | ) |
Definition at line 147 of file WndConsoleParentProc.c.
References tagTW::ButtonHeight, GetTextWinScilab(), tagTW::hbrBackground, hdc, NULL, PS_SOLID, and TRUE.
Referenced by WndParentProc().
00148 { 00149 LPTW lptw=GetTextWinScilab(); 00150 RECT rect; 00151 PAINTSTRUCT ps; 00152 HDC hdc; 00153 00154 hdc = BeginPaint (hwnd, &ps); 00155 GetClientRect (hwnd, &rect); 00156 FillRect (hdc, &rect, lptw->hbrBackground); 00157 00158 if (lptw->ButtonHeight) 00159 { 00160 HPEN hPen,hPenOld; 00161 HBRUSH hbrush; 00162 00163 GetClientRect (hwnd, &rect); 00164 hbrush = CreateSolidBrush (GetSysColor (COLOR_BTNFACE)); 00165 rect.bottom = lptw->ButtonHeight - 1; 00166 FillRect (hdc, &rect, hbrush); 00167 DeleteBrush (hbrush); 00168 00169 hPen = CreatePen(PS_SOLID,1,RGB(255,255,255)); 00170 hPenOld = SelectObject(hdc, hPen); 00171 MoveToEx (hdc, rect.left-1,0, NULL); 00172 LineTo (hdc, rect.right+1,0); 00173 SelectObject(hdc, hPenOld); 00174 DeleteObject(hPen); 00175 00176 hPen = CreatePen(PS_SOLID,1,GetSysColor (COLOR_GRAYTEXT)); 00177 hPenOld = SelectObject(hdc, hPen); 00178 MoveToEx (hdc, rect.left, lptw->ButtonHeight - 1, NULL); 00179 LineTo (hdc, rect.right, lptw->ButtonHeight - 1); 00180 SelectObject(hdc, hPenOld); 00181 DeleteObject(hPen); 00182 } 00183 EndPaint (hwnd, &ps); 00184 00185 return TRUE; 00186 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_SETFOCUS | ( | HWND | hwnd, | |
| HWND | hwndOldFocus | |||
| ) |
Definition at line 263 of file WndConsoleParentProc.c.
References GetTextWinScilab(), tagTW::hWndText, SetFocus(), and TRUE.
Referenced by WndParentProc().
00264 { 00265 LPTW lptw=GetTextWinScilab(); 00266 if (IsWindow (lptw->hWndText)) SetFocus (lptw->hWndText); 00267 return TRUE; 00268 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 235 of file WndConsoleParentProc.c.
References tagTW::ButtonHeight, GetTextWinScilab(), tagTW::hWndText, tagTW::lpmw, NULL, tagMW::ShowToolBar, and TRUE.
Referenced by WndParentProc().
00236 { 00237 LPTW lptw=GetTextWinScilab(); 00238 00239 if (lptw->lpmw->ShowToolBar) 00240 { 00241 /* Affichage Zone Toolbar */ 00242 SetWindowPos (lptw->hWndText, (HWND) NULL, 0, lptw->ButtonHeight,cx, cy - lptw->ButtonHeight,SWP_NOZORDER | SWP_NOACTIVATE); 00243 } 00244 else 00245 { 00246 /* Pas de zone Toolbar */ 00247 SetWindowPos (lptw->hWndText, (HWND) NULL, 0, 0,cx,cy,SWP_NOZORDER | SWP_NOACTIVATE); 00248 00249 } 00250 return TRUE; 00251 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_SYSCOLORCHANGE | ( | HWND | hwnd | ) |
Definition at line 188 of file WndConsoleParentProc.c.
References tagTW::bSysColors, GetTextWinScilab(), tagTW::hWndText, InitIhmDefaultColor(), SetIhmSystemDefaultTextBackgroundColor(), SetIhmSystemDefaultTextColor(), and TRUE.
Referenced by WndParentProc().
00189 { 00190 LPTW lptw=GetTextWinScilab(); 00191 00192 if (lptw->bSysColors) 00193 { 00194 InitIhmDefaultColor(); 00195 SetIhmSystemDefaultTextBackgroundColor(); 00196 SetIhmSystemDefaultTextColor(); 00197 } 00198 SendMessage (lptw->hWndText, WM_SYSCOLORCHANGE, (WPARAM) 0, (LPARAM) 0); 00199 00200 return TRUE; 00201 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ON_WND_CONSOLE_WM_SYSCOMMAND | ( | HWND | hwnd, | |
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Definition at line 270 of file WndConsoleParentProc.c.
References GetTextWinScilab(), tagTW::hWndText, M_ABOUT, M_CONSOLE, SwitchConsole(), and TRUE.
Referenced by WndParentProc().
00271 { 00272 LPTW lptw=GetTextWinScilab(); 00273 switch (LOWORD (wParam)) 00274 { 00275 case M_CONSOLE: 00276 { 00277 SwitchConsole(); 00278 SetActiveWindow(hwnd); 00279 } 00280 break; 00281 00282 case M_ABOUT: 00283 SendMessage (lptw->hWndText, WM_COMMAND, wParam, lParam); 00284 break; 00285 } 00286 return TRUE; 00287 }
Here is the call graph for this function:

Here is the caller graph for this function:

| BOOL ReceiveFromAnotherScilab | ( | HWND | hWndSend, | |
| PCOPYDATASTRUCT | MyCopyDataStruct | |||
| ) |
Definition at line 64 of file wmcopydata.c.
References FALSE, LineFromAnotherScilab, MAX_PATH, ReceiveDatafromAnotherScilab, TitleScilabSend, and TRUE.
Referenced by ON_WND_CONSOLE_WM_COPYDATA().
00065 { 00066 BOOL Retour=FALSE; 00067 00068 if (wsprintf(LineFromAnotherScilab,"%s",(LPSTR) ((MYREC *)(MyCopyDataStruct->lpData))->CommandFromAnotherScilab) <= 0) return FALSE; 00069 00070 GetWindowText(hWndSend,TitleScilabSend,MAX_PATH); 00071 ReceiveDatafromAnotherScilab=TRUE; 00072 Retour=TRUE; 00073 00074 return Retour; 00075 }
Here is the caller graph for this function:

| void SaveCurrentLine | ( | BOOL | RewriteLineAtPrompt | ) |
Definition at line 145 of file x_zzledt.c.
00146 { 00147 extern char cur_line[1024]; 00148 00149 if ( (get_is_reading ()) && (PutLineInBuffer == FALSE) ) 00150 { 00151 strcpy(copycur_line,cur_line); 00152 if (RewriteLineAtPrompt) PutLineInBuffer=TRUE; 00153 } 00154 }
| void SendCTRLandAKey | ( | int | code | ) |
Definition at line 1799 of file wmenu.c.
01800 { 01801 extern TW textwin; 01802 char command[MAX_PATH]; 01803 char *d; 01804 01805 wsprintf(command,"%c",(char)code); 01806 if ( IsToThePrompt () && (command[0] != '\0') ) 01807 { 01808 d = command; 01809 while (*d) 01810 { 01811 SendMessage (textwin.hWndText, WM_CHAR, *d, 1L); 01812 d++; 01813 } 01814 } 01815 }
| BOOL SetIhmSystemDefaultTextBackgroundColor | ( | void | ) |
Definition at line 74 of file ihmcolor.c.
00075 { 00076 BOOL bOK=FALSE; 00077 00078 HBRUSH NewHbrBackground=NULL; 00079 LPTW lptw=GetTextWinScilab(); 00080 00081 CurrentIHMTextBackgroundColor=GetSysColor(COLOR_WINDOW); 00082 00083 NewHbrBackground=CreateSolidBrush (CurrentIHMTextBackgroundColor); 00084 00085 if (SetClassLong(lptw->hWndParent,GCL_HBRBACKGROUND,(LONG)NewHbrBackground)==0) bOK=FALSE; 00086 else bOK=TRUE; 00087 00088 if ((bOK) && (SetClassLong(lptw->hWndText,GCL_HBRBACKGROUND,(LONG)NewHbrBackground)==0)) bOK=FALSE; 00089 else bOK=TRUE; 00090 00091 if ( (bOK) && (DeleteObject((HBRUSH)(lptw->hbrBackground)))) bOK=TRUE; 00092 else bOK=FALSE; 00093 00094 lptw->hbrBackground=NewHbrBackground; 00095 if ((bOK) && (InvalidateRect (lptw->hWndText, NULL, TRUE))) bOK=TRUE; 00096 else bOK=FALSE; 00097 00098 return bOK; 00099 }
| BOOL SetIhmSystemDefaultTextColor | ( | void | ) |
Definition at line 63 of file ihmcolor.c.
00064 { 00065 BOOL bOK=FALSE; 00066 LPTW lptw=GetTextWinScilab(); 00067 00068 CurrentIHMTextColor=GetSysColor(COLOR_WINDOWTEXT); 00069 if (InvalidateRect (lptw->hWndText, NULL, TRUE)) bOK=TRUE; 00070 00071 return bOK; 00072 }
| void SwitchConsole | ( | void | ) |
Definition at line 191 of file WinConsole.c.
00192 { 00193 switch (GetConsoleState()) 00194 { 00195 /* La fenetre etait cachée , on la restaure */ 00196 case 0: 00197 { 00198 ShowScilex(); 00199 SetConsoleState(1); 00200 SetConsoleTitle(ScilexConsoleName); 00201 } 00202 break; 00203 /* La fenetre etait apparente , on la cache */ 00204 case 1: 00205 { 00206 HideScilex(); 00207 SetConsoleState(0); 00208 SetConsoleTitle(ScilexConsoleName); 00209 } 00210 break; 00211 } 00212 }
| EXPORT LRESULT CALLBACK WndParentProc | ( | HWND | hwnd, | |
| UINT | message, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Definition at line 59 of file WndConsoleParentProc.c.
References ON_WND_CONSOLE_WM_CLOSE(), ON_WND_CONSOLE_WM_COMMAND(), ON_WND_CONSOLE_WM_COPYDATA(), ON_WND_CONSOLE_WM_CREATE(), ON_WND_CONSOLE_WM_DESTROY(), ON_WND_CONSOLE_WM_DROPFILES(), ON_WND_CONSOLE_WM_ENDSESSION(), ON_WND_CONSOLE_WM_ENTERSIZEMOVE(), ON_WND_CONSOLE_WM_EXITSIZEMOVE(), ON_WND_CONSOLE_WM_GETMINMAXINFO(), ON_WND_CONSOLE_WM_PAINT(), ON_WND_CONSOLE_WM_SETFOCUS(), ON_WND_CONSOLE_WM_SIZE(), ON_WND_CONSOLE_WM_SYSCOLORCHANGE(), and ON_WND_CONSOLE_WM_SYSCOMMAND().
Referenced by RegisterParentWindowClass().
00060 { 00061 switch (message) 00062 { 00063 case WM_ENTERSIZEMOVE : ON_WND_CONSOLE_WM_ENTERSIZEMOVE(); break; 00064 case WM_EXITSIZEMOVE : ON_WND_CONSOLE_WM_EXITSIZEMOVE(); break; 00065 case WM_SYSCOMMAND : ON_WND_CONSOLE_WM_SYSCOMMAND(hwnd,wParam,lParam); break; 00066 case WM_ENDSESSION : ON_WND_CONSOLE_WM_ENDSESSION(hwnd,wParam,lParam); break; 00067 00068 HANDLE_MSG(hwnd,WM_COMMAND,ON_WND_CONSOLE_WM_COMMAND); 00069 HANDLE_MSG(hwnd,WM_SYSCOLORCHANGE,ON_WND_CONSOLE_WM_SYSCOLORCHANGE); 00070 HANDLE_MSG(hwnd,WM_PAINT,ON_WND_CONSOLE_WM_PAINT); 00071 HANDLE_MSG(hwnd,WM_DROPFILES,ON_WND_CONSOLE_WM_DROPFILES); 00072 HANDLE_MSG(hwnd,WM_CREATE,ON_WND_CONSOLE_WM_CREATE); 00073 HANDLE_MSG(hwnd,WM_DESTROY,ON_WND_CONSOLE_WM_DESTROY); 00074 HANDLE_MSG(hwnd,WM_CLOSE,ON_WND_CONSOLE_WM_CLOSE); 00075 HANDLE_MSG(hwnd,WM_COPYDATA,ON_WND_CONSOLE_WM_COPYDATA); 00076 HANDLE_MSG(hwnd,WM_SIZE,ON_WND_CONSOLE_WM_SIZE); 00077 HANDLE_MSG(hwnd,WM_GETMINMAXINFO,ON_WND_CONSOLE_WM_GETMINMAXINFO); 00078 HANDLE_MSG(hwnd,WM_SETFOCUS,ON_WND_CONSOLE_WM_SETFOCUS); 00079 } 00080 return DefWindowProc (hwnd, message, wParam, lParam); 00081 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void WriteIntoKeyBuffer | ( | LPTW | lptw, | |
| char * | StringCommand | |||
| ) |
Definition at line 1949 of file wtext.c.
Referenced by ON_WND_CONSOLE_WM_EXITSIZEMOVE(), and WriteIntoScilab().
01950 { 01951 int lg=0; 01952 int i=0; 01953 01954 lg=strlen(StringCommand); 01955 WriteInKeyBuf=TRUE; 01956 while(i<lg) 01957 { 01958 long count; 01959 count = lptw->KeyBufIn - lptw->KeyBufOut; 01960 01961 if (count < 0) count = count+lptw->KeyBufSize; 01962 if (count < (long) (lptw->KeyBufSize-1)) 01963 { 01964 if (StringCommand[i] == '\t') *lptw->KeyBufIn++ = ' '; 01965 else *lptw->KeyBufIn++ = StringCommand[i]; 01966 if (lptw->KeyBufIn - lptw->KeyBuf >= (signed)lptw->KeyBufSize) 01967 lptw->KeyBufIn = lptw->KeyBuf; /* wrap around */ 01968 } 01969 i++; 01970 } 01971 WriteInKeyBuf=FALSE; 01972 }
Here is the caller graph for this function:

| void WriteRegistryTxt | ( | LPTW | lptw | ) |
Definition at line 202 of file registry.c.
00203 { 00204 /* Modification Sauvegarde dans la base de registre dans 00205 HKEY_CURRENT_USER\\SOFTWARE\\Scilab\\"VERSION"\\Settings 00206 "Version" correspondant à la version de Scilab 00207 Sauvegarde dans HKEY_CURRENT_USER car données dépendant de l'utilisateur 00208 */ 00209 00210 HKEY key = NULL; 00211 DWORD result,dwsize=4; 00212 RECT rect; 00213 int iconic; 00214 char Clef[MAX_PATH]; 00215 int SizeX; 00216 int SizeY; 00217 int SysColors; 00218 DWORD TextColor; 00219 DWORD BackgroundColor; 00220 char TextFontName[MAX_PATH]; 00221 int TextFontSize; 00222 BOOL ShowButtons; 00223 // int LanguageCode; 00224 LONG TstRegCreateKeyEx=0; 00225 00226 wsprintf(Clef,"SOFTWARE\\Scilab\\%s\\Settings",SCI_VERSION_STRING); 00227 TstRegCreateKeyEx = RegCreateKeyEx(HKEY_CURRENT_USER, Clef, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &key, &result); 00228 if (TstRegCreateKeyEx == ERROR_SUCCESS) 00229 { 00230 iconic = IsIconic (lptw->hWndParent); 00231 if (iconic) ShowWindow (lptw->hWndParent, SW_SHOWNORMAL); 00232 00233 GetWindowRect (lptw->hWndParent, &rect); 00234 RegSetValueEx(key, "TextOriginX", 0, REG_DWORD, (LPBYTE)&rect.left, dwsize); 00235 RegSetValueEx(key, "TextOriginY", 0, REG_DWORD, (LPBYTE)&rect.top, dwsize); 00236 00237 SizeX=rect.right - rect.left; 00238 SizeY=rect.bottom - rect.top; 00239 RegSetValueEx(key, "TextSizeX", 0, REG_DWORD, (LPBYTE)&SizeX, dwsize); 00240 RegSetValueEx(key, "TextSizeY", 0, REG_DWORD, (LPBYTE)&SizeY, dwsize); 00241 00242 RegSetValueEx(key, "TextMinimized", 0, REG_DWORD, (LPBYTE)&iconic, dwsize); 00243 00244 strcpy(TextFontName,lptw->fontname); 00245 RegSetValueEx(key, "TextFontName", 0, REG_SZ, (LPBYTE)TextFontName, strlen(TextFontName)+1); 00246 00247 TextFontSize=lptw->fontsize; 00248 RegSetValueEx(key, "TextFontSize", 0, REG_DWORD, (LPBYTE)&TextFontSize, dwsize); 00249 00250 SysColors=lptw->bSysColors; 00251 RegSetValueEx(key, "SysColors", 0, REG_DWORD, (LPBYTE)&SysColors, dwsize); 00252 00253 TextColor=GetIhmTextColor(); 00254 RegSetValueEx(key, "TextColor", 0, REG_DWORD, (LPBYTE)&TextColor, dwsize); 00255 00256 BackgroundColor= GetIhmTextBackgroundColor(); 00257 RegSetValueEx(key, "BackgroundColor", 0, REG_DWORD, (LPBYTE)&BackgroundColor, dwsize); 00258 00259 ShowButtons=lptw->lpmw->ShowToolBar; 00260 RegSetValueEx(key, "ToolBar", 0, REG_DWORD, (LPBYTE)&ShowButtons, dwsize); 00261 00262 /*LanguageCode=lptw->lpmw->CodeLanguage; 00263 RegSetValueEx(key, "Language", 0, REG_DWORD, (LPBYTE)&LanguageCode, dwsize); 00264 */ 00265 00266 RegCloseKey(key); 00267 } 00268 00269 if (iconic) ShowWindow (lptw->hWndParent, SW_SHOWMINIMIZED); 00270 00271 }
| char ScilexConsoleName[MAX_PATH] |
Definition at line 11 of file WinConsole.c.
Referenced by CreateScilabConsole(), ON_WND_CONSOLE_WM_CREATE(), RenameConsole(), and SwitchConsole().
| char ScilexWindowName[MAX_PATH] |
Definition at line 81 of file wtext.c.
Referenced by Callback_NEWSCILAB(), ON_MESSAGEBOXNEWGRAPHICMODE_WM_INITDIALOG(), ON_WND_CONSOLE_WM_CREATE(), and UpdateFileGraphNameMenu().
| POINT ScreenMinSize |
1.5.1