Esempio n. 1
0
/**
 * Default constructor. Instantiate and register the UI elements (main menu
 * and dialogs)
 */
PluginUI::PluginUI()
{
	PluginUI::singleton = this;
   // Instantiate and register the Set S/T Scale dialog. We need a non-generic
   // handle on this one too, because it will be used as input to the Get Info
   // dialog constructor below.
   SmartPointer<SetScaleDialog> setScaleDialog(
      new SetScaleDialog("SetScale"));
   SmartPointer<GenericDialog> setScaleDialogGeneric(setScaleDialog);
   RegisterDialog(setScaleDialogGeneric);
   // Instantiate and register the Get Info dialog. Constructor needs a handle
   // on the Set S/T Scale dialog (since it may need to send texture info to
   // it).
   SmartPointer<GenericDialog> getInfoDialogGeneric(
      new GetInfoDialog("GetInfo", setScaleDialog));
   RegisterDialog(getInfoDialogGeneric);
   // Instantiate and register the General Function dialog.
   SmartPointer<GenericDialog> genFuncDialogGeneric(
      new GeneralFunctionDialog("GeneralFunction"));
   RegisterDialog(genFuncDialogGeneric);
   // Instantiate and register the main menu. Constructor needs generic
   // handles on all dialogs (since it may need to raise them).
   SmartPointer<GenericMainMenu> mainMenuGeneric(
      new ::MainMenu(setScaleDialogGeneric,
                     getInfoDialogGeneric,
                     genFuncDialogGeneric));
   RegisterMainMenu(mainMenuGeneric);
}
Esempio n. 2
0
CHTMLContainerDlg::CHTMLContainerDlg(CWnd* pParent /*=NULL*/)
	: CDHtmlDialog((UINT)0, 0, pParent)
	, m_bTitleRectAvailable(FALSE)
	, m_backspaceTime(0)
{
	RegisterDialog(this);
}
Esempio n. 3
0
VOID PhShowMemoryListsDialog(
    __in HWND ParentWindowHandle,
    __in_opt VOID (NTAPI *RegisterDialog)(HWND),
    __in_opt VOID (NTAPI *UnregisterDialog)(HWND)
    )
{
    if (!PhMemoryListsWindowHandle)
    {
        PhMemoryListsWindowHandle = CreateDialog(
            PhInstanceHandle,
            MAKEINTRESOURCE(IDD_MEMLISTS),
            ParentWindowHandle,
            PhpMemoryListsDlgProc
            );
        RegisterDialog(PhMemoryListsWindowHandle);
        UnregisterDialogFunction = UnregisterDialog;
    }

    if (!IsWindowVisible(PhMemoryListsWindowHandle))
        ShowWindow(PhMemoryListsWindowHandle, SW_SHOW);
    else if (IsIconic(PhMemoryListsWindowHandle))
        ShowWindow(PhMemoryListsWindowHandle, SW_RESTORE);
    else
        SetForegroundWindow(PhMemoryListsWindowHandle);
}
Esempio n. 4
0
CHTMLContainerDlg::CHTMLContainerDlg(UINT nIDTemplate, UINT nHtmlResID /*= 0*/, CWnd *pParentWnd /*= NULL*/, int iWidth /*= 0*/, int iHeight /*= 0*/ )
	: CDHtmlDialog(nIDTemplate, nHtmlResID, pParentWnd)
	, m_bTitleRectAvailable(FALSE)
	, m_iWidth(iWidth)
	, m_iHeight(iHeight)
{
	RegisterDialog(this);
}