version 1.2, 2001/10/09 01:36:29 |
version 1.5, 2002/10/02 09:33:32 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/windows/engine2000/ox_plot_win.c,v 1.1.1.1 2000/11/22 06:20:13 noro Exp $ |
* $OpenXM: OpenXM_contrib2/windows/engine2000/ox_plot_win.c,v 1.4 2002/07/30 03:48:34 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
Line 62 static int remotes; |
|
Line 62 static int remotes; |
|
static int depth,scrn; |
static int depth,scrn; |
|
|
extern jmp_buf ox_env; |
extern jmp_buf ox_env; |
extern DWORD MainThread; |
|
|
|
|
|
static int busy; |
static int busy; |
|
|
HBRUSH ClearBrush,DrawBrush; |
HBRUSH ClearBrush,DrawBrush; |
Line 92 int search_active_canvas() |
|
Line 90 int search_active_canvas() |
|
return -1; |
return -1; |
} |
} |
|
|
|
volatile DWORD MainThread; |
|
volatile int canvas_created; |
|
|
void create_canvas(struct canvas *can) |
void create_canvas(struct canvas *can) |
{ |
{ |
alloc_pixmap(can); |
alloc_pixmap(can); |
can->real_can = can; |
can->real_can = can; |
|
while ( !MainThread ); |
|
canvas_created = 0; |
PostThreadMessage(MainThread,WM_APP,can->index,0); |
PostThreadMessage(MainThread,WM_APP,can->index,0); |
|
while ( !canvas_created ); |
} |
} |
|
|
void destroy_canvas(struct canvas *can) |
void destroy_canvas(struct canvas *can) |
Line 104 void destroy_canvas(struct canvas *can) |
|
Line 108 void destroy_canvas(struct canvas *can) |
|
if ( can == current_can ) { |
if ( can == current_can ) { |
reset_busy(can); current_can = 0; |
reset_busy(can); current_can = 0; |
} |
} |
|
can->window = 0; |
|
DeleteObject(can->pix); |
|
closed_canvas[can->index] = can; |
canvas[can->index] = 0; |
canvas[can->index] = 0; |
} |
} |
|
|
Line 142 void alloc_pixmap(struct canvas *can) |
|
Line 149 void alloc_pixmap(struct canvas *can) |
|
void copy_to_canvas(struct canvas *can) |
void copy_to_canvas(struct canvas *can) |
{ |
{ |
PostThreadMessage(MainThread,WM_APP,can->index,0); |
PostThreadMessage(MainThread,WM_APP,can->index,0); |
|
} |
|
|
|
void popup_canvas(int index) |
|
{ |
|
create_canvas(canvas[index]); |
} |
} |
|
|
void copy_subimage(struct canvas *subcan,struct canvas *can,POINT pos) |
void copy_subimage(struct canvas *subcan,struct canvas *can,POINT pos) |