void CnHyperlink::OnMouseMove(UINT nFlags, CPoint point) { ::SetCursor(hCursor_); if (GetCapture() == this) { CRect rect; GetClientRect(rect); if (UnderLineMode_ == ULM_OVER) SetUnderLine(false); if (!rect.PtInRect(point)) { ReleaseCapture(); Invalidate(TRUE); } } else { if (UnderLineMode_ == ULM_OVER) SetUnderLine(true); SetCapture(); Invalidate(TRUE); } CStatic::OnMouseMove(nFlags, point); }
void VSpanHandler::TraiteCSS(const VString& inAttribut, const VString& inValue) { if(inAttribut == MS_FONT_NAME) { SetFont(inValue); } else if(inAttribut == MS_FONT_SIZE) { SetFontSize(inValue); } else if(inAttribut == MS_COLOR) { SetColor(inValue); } else if(inAttribut == MS_ITALIC) { SetItalic(inValue); } else if(inAttribut == MS_BACKGROUND) { SetBackgroundColor(inValue); } else if(inAttribut == MS_BOLD) { SetBold(inValue); } else if(inAttribut == MS_UNDERLINE) { SetUnderLine(inValue); } else if(inAttribut == MS_JUSTIFICATION) { SetJustification(inValue); } }
static bool ImgGetLine( a_window *wnd, int row, int piece, wnd_line_piece *line ) { image_entry *img; wnd=wnd; line->indent = Indents[ piece ]; if( row < 0 ) { row += TITLE_SIZE; switch( row ) { case 0: line->tabstop = FALSE; switch( piece ) { case PIECE_IMAGE: line->text = LIT_DUI( Executable_File ); return( TRUE ); case PIECE_SYMBOL: line->text = LIT_DUI( Debug_Information ); return( TRUE ); case PIECE_DIP: line->text = LIT_DUI( Debug_Information_Type ); return( TRUE ); default: return( FALSE ); } case 1: if( piece != 0 ) return( FALSE ); SetUnderLine( wnd, line ); return( TRUE ); default: return( FALSE ); } } else { line->tabstop = FALSE; line->use_prev_attr = TRUE; line->extent = WND_MAX_EXTEND; img = ImgGetImage( row ); if( img == NULL ) return( FALSE ); switch( piece ) { case PIECE_IMAGE: line->text = img->image_name; line->tabstop = TRUE; line->use_prev_attr = FALSE; return( TRUE ); case PIECE_SYMBOL: line->text = ImgSymName( img, FALSE ); return( TRUE ); case PIECE_DIP: if( img->dip_handle == NO_MOD ) { line->text = " "; } else { line->text = (char *)ImageDIP( img->dip_handle ); } return( TRUE ); } } return( FALSE ); }
static bool TrdGetLine( a_window *wnd, int row, int piece, wnd_line_piece *line ) { thread_state *thd = GetThreadRow( row ); line->indent = Indents[piece] * WndAvgCharX( wnd ); if( row < 0 ) { row += TITLE_SIZE; switch( row ) { case 0: switch( piece ) { case PIECE_ID: line->text = LIT_DUI( ID ); return( true ); case PIECE_STATE: line->text = LIT_DUI( State ); return( true ); case PIECE_NAME: line->text = TxtBuff; RemoteThdName( 0, TxtBuff ); // nyi - pui - line up in proportional font return( true ); default: return( false ); } case 1: if( piece != 0 ) return( false ); SetUnderLine( wnd, line ); return( true ); default: return( false ); } } else { if( thd == NULL ) return( false ); line->tabstop = false; line->use_prev_attr = true; line->extent = WND_MAX_EXTEND; switch( piece ) { case PIECE_ID: line->tabstop = true; line->use_prev_attr = false; line->text = TxtBuff; CnvULongHex( thd->tid, TxtBuff, TXT_LEN ); return( true ); case PIECE_STATE: if( IsThdCurr( thd ) ) { line->text = LIT_ENG( Current ); } else { switch( thd->state ) { case THD_THAW: line->text = LIT_ENG( Runnable ); break; case THD_FREEZE: line->text = LIT_ENG( Frozen ); break; case THD_WAIT: line->text = LIT_ENG( Wait ); break; case THD_SIGNAL: line->text = LIT_ENG( Signal ); break; case THD_KEYBOARD: line->text = LIT_ENG( Keyboard ); break; case THD_BLOCKED: line->text = LIT_ENG( Blocked ); break; case THD_RUN: line->text = LIT_ENG( Executing ); break; case THD_DEBUG: line->text = LIT_ENG( Debug ); break; case THD_DEAD: line->text = LIT_ENG( Dead ); break; } } return( true ); case PIECE_NAME: line->tabstop = false; line->use_prev_attr = true; line->text = thd->name; return( true ); } } return( false ); }
static bool RunTrdGetLine( a_window *wnd, int row, int piece, wnd_line_piece *line ) { thread_state *thd = GetThreadRow( row ); line->indent = Indents[ piece ] * WndAvgCharX( wnd ); if( row < 0 ) { row += TITLE_SIZE; switch( row ) { case 0: if( piece < PieceCount ) { line->text = HeaderArr[ piece ]; return( TRUE ); } return( FALSE ); case 1: if( piece != 0 ) return( FALSE ); SetUnderLine( wnd, line ); return( TRUE ); default: return( FALSE ); } } else { if( thd == NULL ) return( FALSE ); line->tabstop = FALSE; line->use_prev_attr = TRUE; line->extent = WND_MAX_EXTEND; switch( InfoType[ piece ] ) { case RUN_THREAD_INFO_TYPE_NAME: line->tabstop = TRUE; line->use_prev_attr = FALSE; line->text = thd->name; return( TRUE ); case RUN_THREAD_INFO_TYPE_STATE: if( IsThdCurr( thd ) && ( thd->state == THD_DEBUG ) ) { line->text = LIT( Current ); } else { switch( thd->state ) { case THD_THAW: line->text = LIT( Runnable ); break; case THD_FREEZE: line->text = LIT( Frozen ); break; case THD_WAIT: line->text = LIT( Wait ); break; case THD_SIGNAL: line->text = LIT( Signal ); break; case THD_KEYBOARD: line->text = LIT( Keyboard ); break; case THD_BLOCKED: line->text = LIT( Blocked ); break; case THD_RUN: line->text = LIT( Executing ); break; case THD_DEBUG: line->text = LIT( Debug ); break; case THD_DEAD: line->text = LIT( Dead ); break; } } return( TRUE ); case RUN_THREAD_INFO_TYPE_EXTRA: line->tabstop = FALSE; line->use_prev_attr = TRUE; line->text = thd->extra; return( TRUE ); case RUN_THREAD_INFO_TYPE_CS_EIP: line->tabstop = FALSE; line->use_prev_attr = TRUE; if( thd->cs ) { sprintf(TxtBuff, "%04hX:%08lX", thd->cs, thd->eip ); line->text = TxtBuff; } else { line->text = ""; } return( TRUE ); } } return( FALSE ); }