TBN_WRAPACCELERATOR notification code

Requests the index of the button in one or more toolbars corresponding to the specified accelerator character. This notification code is sent in the form of a WM_NOTIFY message.


TBN_WRAPACCELERATOR

    lpnmtb = (NMTBWRAPACCELERATOR) lParam; 

Parameters

lParam

A pointer to a structure that contains the accelerator key character, and that receives the index of the corresponding button. The index is -1 if the accelerator does not correspond to a command.

Return value

TRUE if an index is returned, otherwise FALSE.

Remarks

Applications with one or more toolbars may receive this notification code.

The NMTBWRAPACCELERATOR structure must be defined by the application as follows:

typedef struct tagNMTBWRAPACCELERATOR {
    NMHDR hdr;
    UINT ch;
    int iButton;
} NMTBWRAPACCELERATOR, *LPNMTBWRAPACCELERATOR;

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Show: