Several Functions of ARX to take the CAD window handle

Source: Internet
Author: User
Cwinapp * acedgetacadwinapp ()
Returns the point to the AutoCAD application. ProgramClass instance pointer

Cdocument * acedgetacaddoc ()
Returns a pointer to an AutoCAD file instance.

Cview * acedgetacaddwgview ()
Returns the pointer to the View class (drawing area of AutoCAD)

Cmdiframewnd * acedgetacadframe ()
Returns the pointer to the main framework instance of a Multi-document (MDI) program.

Cwnd * acedgetacaddock1_line ()
Returns the pointer to the AutoCAD command window instance.

Cwnd * acedgetacadtextcmdline ()
Returns the pointer to the AutoCAD text window instance.

Hinstance acedgetacadresourceinstaNCE ()
Returns the resource handle used by AutoCAD.

Int acedsetstatusbarprogressMeter (
Const char * pszlabel,
Int nminpos,
Int nmaxpos );
Generate a progress bar on the status bar of the AutoCAD main program window,
The return value is 0, indicating that the function is successfully called.
The returned value is-1, indicating that the function call failed.

Int acedsetstatusbarprogressMeterpos (INT NPOs)
Set the current progress
NPOs> = 0, then NPOs is the current progress Value
NPOs <0, the current progress value is added to NPOs

Void acedrestorestatusbar ()
Restore the original status of the progress bar. The progress bar disappears and no value is returned.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.