Message 1 of 15
MFC forms and selecting points
Not applicable
02-04-2004
09:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a button on a MFC form that allows a user to pick a point. When the
button is clicked Autocad minimizes and locks up. The prompt asking the
user to select a point is displayed. The code I am using is below. Is there
a different way to do this?
void CTestDlg::OnBnClickedStartpoint()
{
int rc;
AcGePoint3d startpt,p;
startpt.x=0;
startpt.z=0;
startpt.y=0;
ShowWindow(0);
rc = acedGetPoint(startpt,pMessage, p);
if (rc == RTNONE)
{
rc = RTNORM;
ShowWindow(1);
return;
}
ShowWindow(1);
}