Hide

SftPrintPreview/DLL 2.0 - Print Preview Control for C/C++

Display
Print

ToolBarEdit Function

The ToolBarEdit function sets the input focus to a control on the built-in tool bar for editing by the user.

C

void SftPrintPreview_ToolBarEdit(HWND hwnd, int style);

C++

void CSftPrintPreview::ToolBarEdit(int style);

Parameters

hwnd

The window handle of the Print Preview control.

style

Defines the control to receive the input focus:

styleDescription
SFTPRINTPREVIEW_TOOLBAR_PAGEThe edit control used to enter the current page number receives the input focus.
SFTPRINTPREVIEW_TOOLBAR_ZOOMThe combo box used to enter the zoom factor receives the input focus.

Comments

The ToolBarEdit function sets the input focus to a control on the built-in tool bar for editing by the user.

This function is typically used to allow access to editable tool bar fields from an application's menu. The OnViewPageEdit and OnPreviewZoomEdit menu handlers used with C++/MFC use the ToolBarEdit function.

Example

C

SftPrintPreview_ToolBarEdit(hwndPreview, SFTPRINTPREVIEW_TOOLBAR_ZOOM);

C++

m_Preview.ToolBarEdit(SFTPRINTPREVIEW_TOOLBAR_ZOOM);

See Also C/C++ API | C++ Classes | Notifications


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.