Displays the Select Drawings dialog box.
struct resbuf*
ade_dwgselectdlg(
void* pParent,
const char* pCaption);
Returns a resbuf list or NULL.
| pParent | A value defining the pointer to the Select Drawings dialog box parent window, which is expected to be represented by a CWnd object. 0 means that the parent window is not defined. |
| pCaption | Text that is shown before the current directory in the caption of the Select Drawings dialog box. |
You must release the resbuf.
The following sample polulates a resbuf based on the files selected using ade_dwgselectdlg(). The contents of the resbuf are displayed and then released as required.
void* pParentCWnd = 0;
const char* pszDlgCaption = "Dialog Caption";
struct resbuf* pSelectedDwgsRb = ade_dwgselectdlg(pParentCWnd, pszDlgCaption);
if (NULL != pSelectedDwgsRb){
acutPrintf(
"\nThe following files were selected: ");
struct resbuf* rb = pSelectedDwgsRb;
while(NULL != rb) {
acutPrintf("\n\n\"%s\""
, rb->resval.rstring);
rb = rb->rbnext;
}
}
else {
acutPrintf(
"\nNo files were selected.");
}
acutRelRb(pSelectedDwgsRb);


