CAnnoData::OnPaint

#include “BiAnno.h”

void OnPaint( CWnd           *pWnd,
CPaintDC    &dc,
LPDISPLAYSTRUCT   lpDisp );

Description

This function draws the annotation helper lines while dragging or resizing the objects.

Parameters

CWnd

*pWnd

Pointer to the CView window class

CPaintDC

&dc

The paint device context which already contains the painted background bitmap

LPDISPLAYSTRUCT

lpDisp

Pointer to the Display Structure

Return value

None

Programming Notes

None

Code Example                      

void CVtiffView::OnPaint()

{

    CVtiffDoc* pDoc = GetDocument();

 

    CPaintDC dc(this); // device context for painting

    DisplayDIBImageDC(dc.m_hDC, &pDoc->sDisplay);

    LPDISPLAYSTRUCT lpDisp = &pDoc->sDisplay;

    pDoc->m_Anno->OnPaint( this, dc, lpDisp );

}