|
// --- Interface tools ---
static Boxs box_box ;
// --- for Brush Selection Tool ---
static Boxs box_brush ;
static Tool_Brush tool_brush ;
// ----------------------------------------------------------------------------
//
// Function: Ctrl_Click
//
// ----------------------------------------------------------------------------
extern "C" __declspec(dllexport) int Ctrl_Click( HWND wnd, int up_down, short x, short y )
{
// --- We only refresh the image when we release the button ---
if ( ! up_down ) {
return( 0 ) ;
}
// ------------------------------------------------
// --- TAG Selection Tool ---
// ------------------------------------------------
if ( tool_tag.Click( up_down ) >= 0 ) {
unsigned short *TAG_Cur = (unsigned short *) Fct_Variable_Get( "$TAG_CUR" ) ;
if ( ! TAG_Cur )
return( 0 ) ;
if ( *TAG_Cur != tool_tag.Read() ) {
// --- we changed the current tag ---
*TAG_Cur = tool_tag.Read() ;
Fct_Update( UPDATE_CUR_TAG ) ;
}
return( 1 ) ;
}
// ------------------------------------------------
return( 0 ) ;
}
|