Поделиться через


CWnd::ExecuteDlgInit

Initiates a dialog resource.

BOOL ExecuteDlgInit(
   LPCTSTR lpszResourceName 
);
BOOL ExecuteDlgInit(
   LPVOID lpResource 
);

Параметры

  • lpszResourceName
    A pointer to a null-terminated string specifying the name of the resource.

  • lpResource
    A pointer to a resource.

Возвращаемое значение

TRUE if a dialog resource is executed; otherwise FALSE.

Заметки

ExecuteDlgInit will use resources bound to the executing module, or resources from other sources. To accomplish this, ExecuteDlgInit finds a resource handle by calling AfxFindResourceHandle. If your MFC application does not use the shared DLL (MFCx0[U][D].DLL), AfxFindResourceHandle calls AfxGetResourceHandle, which returns the current resource handle for the executable. If your MFC application that uses MFCx0[U][D].DLL, AfxFindResourceHandle traverses the CDynLinkLibrary object list of shared and extension DLLs looking for the correct resource handle.

Требования

Header: afxwin.h

См. также

Основные понятия

CWnd Class

CWnd Members

Hierarchy Chart

CDialog::OnInitDialog

WM_INITDIALOG