SftPrintPreview/DLL 2.0

NM_SFTPRINTPREVIEW_RETURN

Softel vdm, Inc.

The NM_SFTPRINTPREVIEW_RETURN structure describes the NM_SFTPRINTPREVIEW_RETURN_CODE notification.

typedef struct {
    NMHDR hdr;
} NM_SFTPRINTPREVIEW_RETURN;

Members

hdr

Standard NMHDR structure that contains information about this notification.

Comments

The NM_SFTPRINTPREVIEW_RETURN structure describes the NM_SFTPRINTPREVIEW_RETURN_CODE notification.  

General information about the control sending this notification is contained in the hdr structure (see NMHDR).

Example

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_RETURN_CODE:
                // The user hit the Return key
                break;
            }
            break;
        }
        break;
     }
    }
    return DefWindowProc(hwndMain, uMsg, wParam, lParam);
}

C++

BEGIN_MESSAGE_MAP(CPreviewDialog, CDialog)
    ON_NM_SFTPRINTPREVIEW_RETURN_CODE(IDC_PREVIEW, OnPreviewReturnKey)
END_MESSAGE_MAP()
afx_msg void CPreviewDialog::OnPreviewReturnKey(NMHDR* pnmh, LRESULT* result)
{
    NM_SFTPRINTPREVIEW_RETURN* pNotifyStruct = (NM_SFTPRINTPREVIEW_RETURN*) pnmh;
    // The user hit the Return key
}

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


Feedback / comments / error reports for this topic
© 2016 - Softel vdm, Inc. - www.softelvdm.com