SftButton/DLL 3.0 - Button Control (Coming Soon)
SftTabs/DLL 7.0 - Tab Control (Coming Soon)
SftTree/DLL 7.5 - Tree Control
SftTree/DLL 8.0 - Tree Control (Coming Soon)
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTree/NET 2.0 - Tree Control
The NM_SFTPRINTPREVIEW_PRINTERCHANGED structure describes the NM_SFTPRINTPREVIEW_PRINTERCHANGED_CODE notification.
typedef struct {
NMHDR hdr;
} NM_SFTPRINTPREVIEW_PRINTERCHANGED;hdr
Standard NMHDR structure that contains information about this notification.
The NM_SFTPRINTPREVIEW_PRINTERCHANGED structure describes the NM_SFTPRINTPREVIEW_PRINTERCHANGED_CODE notification.
The NM_SFTPRINTPREVIEW_PRINTERCHANGED_CODE notification code is sent when the current printer or current printer attributes have been modified.
General information about the control sending this notification is contained in the hdr structure (see NMHDR).
C
LRESULT CALLBACK MainWindowProc(HWND hwndMain, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg) {
case WM_NOTIFY: {
int id = (int) wParam;
LPNMHDR pnmh = (LPNMHDR) lParam;
switch (id) {
case IDC_PREVIEW:
switch (pnmh->code) {
case NM_SFTPRINTPREVIEW_PRINTERCHANGED_CODE:
// Printer has changed
break;
}
break;
}
break;
}
}
return DefWindowProc(hwndMain, uMsg, wParam, lParam);
}C++
BEGIN_MESSAGE_MAP(CPreviewDialog, CDialog)
ON_NM_SFTPRINTPREVIEW_PRINTERCHANGED_CODE(IDC_PREVIEW, OnPreviewPrinterChanged)
END_MESSAGE_MAP()
afx_msg void CPreviewDialog::OnPreviewPrinterChanged(NMHDR* pnmh, LRESULT* result)
{
NM_SFTPRINTPREVIEW_PRINTERCHANGED* pNotifyStruct = (NM_SFTPRINTPREVIEW_PRINTERCHANGED*) pnmh;
// Printer changed
}See Also C/C++ API | C++ Classes | Notifications
