[Wine] (no subject)

Jagan Arikuti arikuti.jagan at gmail.com
Sat Feb 20 08:23:33 CST 2010


Hey Wine Users

 I installed Microsoft Visual C++ 6.0 on linux using wine
   ok it' working fine and now i am abel to compile all my project on
linux using vc++ 6.0

  the excutable file is workign well  on windows
  and only problem now i have is it is not drwaring text in cells of
the spreedsheet  in Linux, but in windows it is drwaing text in cells

 pls help me, here is the sample code


class CSpreadSheetView : public CScrollView
{
protected::
virtual void DrawCellLabel(CDC* pDC, int iRow, int iCol, CRect rect);
}

class CSwSheetView : public CSpreadSheetView
{

public:
	virtual void OnDraw(CDC* pDC);
protected:
virtual void DrawCellLabel(CDC* pDC, int iRow, int iCol, CRect rect);


}


void CSwSheetView::DrawCellLabel(CDC* pDC, int iRow, int iCol, CRect rect)
{
..............
......
	CString csText=GetCellLabel(iRow,iCol);
	
	pDC->DrawText(csText,rect,DT_VCENTER | DT_RIGHT | DT_SINGLELINE | DT_NOPREFIX);
	
	
}

void CSwSheetView::OnDraw(CDC* pDC)
{
	// Do not draw if data have not been initialized
	CSpreadSheetView::OnDraw(pDC);	
}
void CSpreadSheetView::OnDraw(CDC* pDC)
{
..........
	DrawCellLabel(pDC,iRow+m_iFirstRow,iCol+m_iFirstCol,rectCell);
.............
}



More information about the wine-users mailing list