BCGSuite for MFC
virtual BOOL CBCGPPopupWindow::Create ( CWnd *  pWndOwner,
UINT  uiDlgResID,
HMENU  hMenu = NULL,
CPoint  ptPos = CPoint(-1,-1),
CRuntimeClass *  pRTIDlgBar = RUNTIME_CLASS(CBCGPPopupDlg),
LPARAM  lParam = 0 
)
virtual

Creates and initializes the popup window.

Returns
Nonzero if the popup window was created successfully; otherwise 0.

Call this method to create the popup window. The client area of the popup window is covered by a child dialog, that hosts all necessary controls.

Creates the popup window with a child dialog loaded from the application resources. You can specify also a runtime class information of a custom dialog class.

Parameters
pWndOwnerA pointer to the owner of the popup window. It will receive all notifications. Can't be NULL.
uiDlgResIDSpecifies the resource ID from which the popup window should be created.
hMenuA handle to a Windows menu. The menu is shown when the user clicks the menu button. If this parameter is NULL, the menu button is not displayed.
ptPosSpecifies the initial position on the screen. Should be in the screen coordinates. If this parameter is (-1, -1), the initial position will be in the right bottom corner of the screen.
pRTIDlgBarRuntime class information of a custom dialog class that covers the client area of the popup window.
lParamSpecifies user-derined data.