XLL+ Class Library (7.0)

CXlWizExUIPopupProviderBase::Edit

Displays a dialog to allow the user to edit a value in the Formula Wizard

virtual bool Edit(
   CString& strValue,
   HWND hwndParent
);

Parameters

strValue

When the method is called, strValue contains the current contents of the argument in the Formula Wizard. On exit, it should contain the new value after the user has editied it. If the method returns false, then the exit value will be ignored.

hwndParent

The window handle which a modal dialog must use as a parent window.

Return Value

Returns true if the user has changed the value of the argument, false if no changes were made.

Remarks

This method must be implemented by a class that is derived from CXlWizExUIPopupProviderBase. It will be invoked whenever the user clicks on the edit button ("...") in an argument of the Formula Wizard, or when they type the accelerator key combination (which is Alt+Enter by default).

The implementation should display a modal window, which lets the user edit the value of the argument.

If the user cancels, then the function should return false; if the user makes changes to the argument's value, the function should return true, and the new value should be contained in strValue.

Requirements

Header: xlwizexui.h

See Also

CXlWizExUIPopupProviderBase Class | CXlWizExUIPopupProviderBase Methods