本文整理汇总了C++中CEdit::GetWindowTextA方法的典型用法代码示例。如果您正苦于以下问题:C++ CEdit::GetWindowTextA方法的具体用法?C++ CEdit::GetWindowTextA怎么用?C++ CEdit::GetWindowTextA使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CEdit
的用法示例。
在下文中一共展示了CEdit::GetWindowTextA方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OP_OBJNME
void DialogObjProp::OP_OBJNME()
{
CListBox* pObjList = (CListBox*)parentWnd->GetObjList()->GetDlgItem(IDC_OBJLIST);
CEdit* pObjNme = (CEdit*)GetDlgItem(IDC_OBJNME);
int ID = pObjList->GetCurSel();
char name[512];
pObjNme->GetWindowTextA(name, 512);
parentWnd->theApp->curProject->GetScene()->SetObjectName(name, ID);
if (!parentWnd->UpdateObjectList())
MessageBox("Failed To Update Object List After Name Change!", "Error!");
}
示例2: OP_XROT
void DialogObjProp::OP_XROT()
{
CListBox* pObjList = (CListBox*)parentWnd->GetObjList()->GetDlgItem(IDC_OBJLIST);
if (pObjList->GetCurSel() == LB_ERR)
{
MessageBox("No Object Selected.", "Notice.");
return;
}
int ID = pObjList->GetCurSel();
Transform* objtransform = parentWnd->theApp->curProject->GetScene()->GetSceneObject(ID)->GetTransform();
CEdit* pXPos = (CEdit*)GetDlgItem(IDC_XROT);
char s_xrot[512];
pXPos->GetWindowTextA(s_xrot, 512);
float xRot = atof(s_xrot);
float yRot = objtransform->GetRotation().y;
float zRot = objtransform->GetRotation().z;
objtransform->SetRotation(xRot, yRot, zRot);
}
示例3: OP_ZPOS
void DialogObjProp::OP_ZPOS()
{
CListBox* pObjList = (CListBox*)parentWnd->GetObjList()->GetDlgItem(IDC_OBJLIST);
if (pObjList->GetCurSel() == LB_ERR)
{
MessageBox("No Object Selected.", "Notice.");
return;
}
int ID = pObjList->GetCurSel();
Transform* objtransform = parentWnd->theApp->curProject->GetScene()->GetSceneObject(ID)->GetTransform();
CEdit* pXPos = (CEdit*)GetDlgItem(IDC_ZPOS);
char s_zpos[512];
pXPos->GetWindowTextA(s_zpos, 512);
float xPos = objtransform->GetTranslation().x;
float yPos = objtransform->GetTranslation().y;
float zPos = atof(s_zpos);
objtransform->SetTranslation(xPos, yPos, zPos);
}
示例4: OP_ZSCL
void DialogObjProp::OP_ZSCL()
{
CListBox* pObjList = (CListBox*)parentWnd->GetObjList()->GetDlgItem(IDC_OBJLIST);
if (pObjList->GetCurSel() == LB_ERR)
{
MessageBox("No Object Selected.", "Notice.");
return;
}
int ID = pObjList->GetCurSel();
Transform* objtransform = parentWnd->theApp->curProject->GetScene()->GetSceneObject(ID)->GetTransform();
CEdit* pXPos = (CEdit*)GetDlgItem(IDC_ZSCL);
char s_zscl[512];
pXPos->GetWindowTextA(s_zscl, 512);
float xScl = objtransform->GetScale().x;
float yScl = objtransform->GetScale().y;
float zScl = atof(s_zscl);
objtransform->SetScale(xScl, yScl, zScl);
}