#include <windows.h>#include <windowsx.h>#include "wgnuplib.h"#include "resource.h"#include "Messages.h"#include "Warnings.h"#include "Errors.h"#include "version.h"#include "win_mem_alloc.h"#include "wresource.h"#include "bcg.h"Include dependency graph for WndGraphProc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| EXPORT LRESULT CALLBACK | WndGraphProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
| EXPORT LRESULT CALLBACK WndGraphProc | ( | HWND | hwnd, | |
| UINT | message, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) |
Warning : the following code won't work if the win.a library is replaced by a dll. The way to find WndGraphProc should be changed
Warning : Potential loop It's dangerous to use sciprint in the following code if the argument string to sciprint contains a
because this will call the TextMessage function ( which will enter a message loop). One can enter an infinite loop if TexMessage is activated while inside WndGraphProc and all the following function can be called while inside WndGraphProc.
Definition at line 36 of file WndGraphProc.c.
References GetEventKeyboardAndMouse(), NULL, ON_WND_GRAPH_WM_CLOSE(), ON_WND_GRAPH_WM_COMMAND(), ON_WND_GRAPH_WM_CREATE(), ON_WND_GRAPH_WM_DESTROY(), ON_WND_GRAPH_WM_DROPFILES(), ON_WND_GRAPH_WM_HSCROLL(), ON_WND_GRAPH_WM_KEY(), ON_WND_GRAPH_WM_PAINT(), ON_WND_GRAPH_WM_SIZE(), and ON_WND_GRAPH_WM_VSCROLL().
00037 { 00038 struct BCG *ScilabGC = (struct BCG *) NULL; 00039 ScilabGC = (struct BCG *) GetWindowLong (hwnd, 0); 00040 GetEventKeyboardAndMouse(message,wParam,lParam,ScilabGC); 00041 00042 switch (message) 00043 { 00044 HANDLE_MSG(hwnd,WM_COMMAND,ON_WND_GRAPH_WM_COMMAND); 00045 HANDLE_MSG(hwnd,WM_KEYDOWN,ON_WND_GRAPH_WM_KEY); 00046 HANDLE_MSG(hwnd,WM_CREATE,ON_WND_GRAPH_WM_CREATE); 00047 HANDLE_MSG(hwnd,WM_PAINT,ON_WND_GRAPH_WM_PAINT); 00048 HANDLE_MSG(hwnd,WM_SIZE,ON_WND_GRAPH_WM_SIZE); 00049 HANDLE_MSG(hwnd,WM_HSCROLL,ON_WND_GRAPH_WM_HSCROLL); 00050 HANDLE_MSG(hwnd,WM_VSCROLL,ON_WND_GRAPH_WM_VSCROLL); 00051 HANDLE_MSG(hwnd,WM_DROPFILES,ON_WND_GRAPH_WM_DROPFILES); 00052 HANDLE_MSG(hwnd,WM_DESTROY,ON_WND_GRAPH_WM_DESTROY); 00053 HANDLE_MSG(hwnd,WM_CLOSE,ON_WND_GRAPH_WM_CLOSE); 00054 } 00055 return DefWindowProc (hwnd, message, wParam, lParam); 00056 }
Here is the call graph for this function:

1.5.1