示例#1
0
void CFrustumDialog::OnPaint()
{
	CPaintDC dc(this);
	dc.SetBkMode(TRANSPARENT);

	CRect x_rect(10, 72, 450, 90);
	dc.DrawText(CString("BOTTOM:"), -1, &x_rect, DT_SINGLELINE);

	CRect y_rect(10, 142, 450, 160);
	dc.DrawText(CString("LEFT:"), -1, &y_rect, DT_SINGLELINE);

	CRect z_rect(10, 212, 450, 230);
	dc.DrawText(CString("NEAR:"), -1, &z_rect, DT_SINGLELINE);

	CRect x2_rect(10, 107, 450, 125);
	dc.DrawText(CString("TOP:"), -1, &x2_rect, DT_SINGLELINE);

	CRect y2_rect(10, 177, 450, 195);
	dc.DrawText(CString("RIGHT:"), -1, &y2_rect, DT_SINGLELINE);

	CRect z2_rect(10, 247, 450, 265);
	dc.DrawText(CString("FAR:"), -1, &z2_rect, DT_SINGLELINE);

	mXEdit.SetFocus();
}
示例#2
0
void CRDdialog::OnPaint()
{
	//int i=0;
	//CPaintDC dc(this);
 //   dc.SetBkMode(TRANSPARENT);
	//for(std::vector<CButton*>::iterator it=RDbuttons.begin();it!=RDbuttons.end();++it,i++)
	//{
	//	CRect r(10 ,70*i +20,200,150 + i*20);
	//	dc.DrawText(CString(_ids[i].c_str()),i,&r,DT_SINGLELINE);

	//}
	CPaintDC dc(this);
    dc.SetBkMode(TRANSPARENT);

    CRect cmd_rect(10, 10, 450, 30);
    dc.DrawText(CString(CMD_EDIT_TITLE), -1, &cmd_rect, DT_SINGLELINE);

    CRect x_rect(10, 137, 450, 155);
    dc.DrawText(CString(X_EDIT_TITLE), -1, &x_rect, DT_SINGLELINE);

    CRect y_rect(10, 192, 450, 210);
    dc.DrawText(CString(Y_EDIT_TITLE), -1, &y_rect, DT_SINGLELINE);

    CRect z_rect(10, 247, 450, 265);
    dc.DrawText(CString(Z_EDIT_TITLE), -1, &z_rect, DT_SINGLELINE);
}
示例#3
0
void CXyzDialog::OnPaint()
{   
    CPaintDC dc(this);
    dc.SetBkMode(TRANSPARENT);

    CRect x_rect(100, 72, 450, 90);
    dc.DrawText(CString(X_EDIT_TITLE), -1, &x_rect, DT_SINGLELINE);

    CRect y_rect(100, 142, 450, 160);
    dc.DrawText(CString(Y_EDIT_TITLE), -1, &y_rect, DT_SINGLELINE);

    CRect z_rect(100, 212, 450, 230);
    dc.DrawText(CString(Z_EDIT_TITLE), -1, &z_rect, DT_SINGLELINE);

    mXEdit.SetFocus();
}
示例#4
0
void CCmdXyzDialog::OnPaint()
{   
    CPaintDC dc(this);
    dc.SetBkMode(TRANSPARENT);

    CRect cmd_rect(10, 10, 450, 30);
    dc.DrawText(CString(CMD_EDIT_TITLE), -1, &cmd_rect, DT_SINGLELINE);

    CRect x_rect(10, 137, 450, 155);
    dc.DrawText(CString(X_EDIT_TITLE), -1, &x_rect, DT_SINGLELINE);

    CRect y_rect(10, 192, 450, 210);
    dc.DrawText(CString(Y_EDIT_TITLE), -1, &y_rect, DT_SINGLELINE);

    CRect z_rect(10, 247, 450, 265);
    dc.DrawText(CString(Z_EDIT_TITLE), -1, &z_rect, DT_SINGLELINE);

    mCmdEdit.SetFocus();
}