Muokkaa

Jaa


TBN_DUPACCELERATOR notification code

Ascertains whether an accelerator key can be used on two or more active toolbars. This notification code is sent in the form of a WM_NOTIFY message.

TBN_DUPACCELERATOR

    lpnmtb = (NMTBDUPACCELERATOR) lParam; 

Parameters

lParam

A pointer to a structure that provides an accelerator and that receives a value specifying whether multiple toolbars respond to the same character.

Return value

Returns TRUE if successful, otherwise FALSE.

Remarks

The application must declare the NMTBDUPACCELERATOR structure as follows:

typedef struct tagNMTBDUPACCELERATOR
{
    NMHDR hdr;
    UINT ch;   // The accelerator.
    BOOL fDup; // TRUE if multiple toolbars respond to the accelerator.
} NMTBDUPACCELERATOR, *LPNMTBDUPACCELERATOR;

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h