// XTNotify.h : notification handlers // // This file is a part of the XTREME CONTROLS MFC class library. // (c)1998-2008 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN // CONSENT OF CODEJOCK SOFTWARE. // // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A // SINGLE COMPUTER. // // CONTACT INFORMATION: // support@codejock.com // http://www.codejock.com // ///////////////////////////////////////////////////////////////////////////// //{{AFX_CODEJOCK_PRIVATE #if !defined(__XTNOTIFY_H__) #define __XTNOTIFY_H__ //}}AFX_CODEJOCK_PRIVATE #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 const UINT WM_XTP_CONTROLS_BASE = (WM_USER + 9000); // -------------------------------------------------------------------- // Summary: // CPN_XT_SELCHANGE notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The CPN_XT_SELCHANGE notification message is sent to inform // the owner window that the current color selection has changed. // The owner window of the color picker receives this notification // through the WM_COMMAND message. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CColorDialog, CDialog // //{{AFX_MSG_MAP(CColorDialog) // ON_CPN_XT_SELCHANGE(IDC_CTRL_ID, OnSelChange) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CColorDialog::OnSelChange() // { // // TODO: Handle command. // } // // See Also: // CXTColorPicker, CXTColorSelectorCtrl, CPN_XT_DROPDOWN, CPN_XT_CLOSEUP, CPN_XT_SELENDOK, CPN_XT_SELENDCANCEL, CPN_XT_SELNOFILL // -------------------------------------------------------------------- const UINT CPN_XT_SELCHANGE = (WM_XTP_CONTROLS_BASE + 1); // #define ON_CPN_XT_SELCHANGE(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_CPN_XT_SELCHANGE #define ON_CPN_XT_SELCHANGE(id, memberFxn) \ ON_CONTROL(CPN_XT_SELCHANGE, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // -------------------------------------------------------------------- // Summary: // CPN_XT_DROPDOWN notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The CPN_XT_DROPDOWN notification message is sent to inform the // owner window that the color selection window is has been displayed. // The owner window of the color picker receives this notification // through the WM_COMMAND message. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CColorDialog, CDialog // //{{AFX_MSG_MAP(CColorDialog) // ON_CPN_XT_DROPDOWN(IDC_CTRL_ID, OnDropDown) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CColorDialog::OnDropDown() // { // // TODO: Handle command. // } // // See Also: // CXTColorPicker, CXTColorSelectorCtrl, CPN_XT_SELCHANGE, CPN_XT_CLOSEUP, CPN_XT_SELENDOK, CPN_XT_SELENDCANCEL, CPN_XT_SELNOFILL // -------------------------------------------------------------------- const UINT CPN_XT_DROPDOWN = (WM_XTP_CONTROLS_BASE + 2); // #define ON_CPN_XT_DROPDOWN(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_CPN_XT_DROPDOWN #define ON_CPN_XT_DROPDOWN(id, memberFxn) \ ON_CONTROL(CPN_XT_DROPDOWN, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // -------------------------------------------------------------------- // Summary: // CPN_XT_CLOSEUP notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The CPN_XT_CLOSEUP notification message is sent to inform the // owner window that the color selection window has closed. // The owner window of the color picker receives this notification // through the WM_COMMAND message. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CColorDialog, CDialog // //{{AFX_MSG_MAP(CColorDialog) // ON_CPN_XT_CLOSEUP(IDC_CTRL_ID, OnCloseUp) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CColorDialog::OnCloseUp() // { // // TODO: Handle command. // } // // See Also: // CXTColorPicker, CXTColorSelectorCtrl, CPN_XT_SELCHANGE, CPN_XT_DROPDOWN, CPN_XT_SELENDOK, CPN_XT_SELENDCANCEL, CPN_XT_SELNOFILL // -------------------------------------------------------------------- const UINT CPN_XT_CLOSEUP = (WM_XTP_CONTROLS_BASE + 3); // #define ON_CPN_XT_CLOSEUP(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_CPN_XT_CLOSEUP #define ON_CPN_XT_CLOSEUP(id, memberFxn) \ ON_CONTROL(CPN_XT_CLOSEUP, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // -------------------------------------------------------------------- // Summary: // CPN_XT_SELENDOK notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The CPN_XT_SELENDOK notification message is sent to inform the // owner window that a color selection has been made. // The owner window of the color picker receives this notification // through the WM_COMMAND message. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CColorDialog, CDialog // //{{AFX_MSG_MAP(CColorDialog) // ON_CPN_XT_SELENDOK(IDC_CTRL_ID, OnSelEndOk) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CColorDialog::OnSelEndOk() // { // // TODO: Handle command. // } // // See Also: // CXTColorPicker, CXTColorSelectorCtrl, CPN_XT_SELCHANGE, CPN_XT_DROPDOWN, CPN_XT_CLOSEUP, CPN_XT_SELENDCANCEL, CPN_XT_SELNOFILL // -------------------------------------------------------------------- const UINT CPN_XT_SELENDOK = (WM_XTP_CONTROLS_BASE + 4); // #define ON_CPN_XT_SELENDOK(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_CPN_XT_SELENDOK #define ON_CPN_XT_SELENDOK(id, memberFxn) \ ON_CONTROL(CPN_XT_SELENDOK, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // -------------------------------------------------------------------- // Summary: // CPN_XT_SELENDCANCEL notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The CPN_XT_SELENDCANCEL notification message is sent to inform the // owner window that a color selection has been canceled. // The owner window of the color picker receives this notification // through the WM_COMMAND message. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CColorDialog, CDialog // //{{AFX_MSG_MAP(CColorDialog) // ON_CPN_XT_SELENDCANCEL(IDC_CTRL_ID, OnSelEndCancel) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CColorDialog::OnSelEndCancel() // { // // TODO: Handle command. // } // // See Also: // CXTColorPicker, CXTColorSelectorCtrl, CPN_XT_SELCHANGE, CPN_XT_DROPDOWN, CPN_XT_CLOSEUP, ON_CPN_XT_SELENDOK, CPN_XT_SELNOFILL // -------------------------------------------------------------------- const UINT CPN_XT_SELENDCANCEL = (WM_XTP_CONTROLS_BASE + 5); // #define ON_CPN_XT_SELENDCANCEL(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_CPN_XT_SELENDCANCEL #define ON_CPN_XT_SELENDCANCEL(id, memberFxn) \ ON_CONTROL(CPN_XT_SELENDCANCEL, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // -------------------------------------------------------------------- // Summary: // CPN_XT_SELNOFILL notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The CPN_XT_SELNOFILL notification message is sent to inform the // owner window that a "No Fill" or "Automatic Color" selection has been made. // The owner window of the color picker receives this notification // through the WM_COMMAND message. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CColorDialog, CDialog // //{{AFX_MSG_MAP(CColorDialog) // ON_CPN_XT_SELNOFILL(IDC_CTRL_ID, OnSelNoFill) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CColorDialog::OnSelNoFill() // { // // TODO: Handle command. // } // // See Also: // CXTColorPicker, CXTColorSelectorCtrl, CPN_XT_SELCHANGE, CPN_XT_DROPDOWN, CPN_XT_CLOSEUP, ON_CPN_XT_SELENDOK, CPN_XT_SELENDCANCEL // -------------------------------------------------------------------- const UINT CPN_XT_SELNOFILL = (WM_XTP_CONTROLS_BASE + 6); // #define ON_CPN_XT_SELNOFILL(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_CPN_XT_SELNOFILL #define ON_CPN_XT_SELNOFILL(id, memberFxn) \ ON_CONTROL(CPN_XT_SELNOFILL, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // -------------------------------------------------------------------- // Summary: // BEN_XT_LABELEDITEND notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The BEN_XT_LABELEDITEND notification message is sent when // the user performs a browse operation successfully. It indicates // the user's selection is to be processed. The owner window of the // browse edit receives this notification through the WM_COMMAND // message. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CBrowseDialog, CDialog // //{{AFX_MSG_MAP(CBrowseDialog) // ON_BEN_XT_LABELEDITEND(IDC_CTRL_ID, OnLabelEditEnd) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CBrowseDialog::OnLabelEditEnd() // { // // TODO: Handle command. // } // // See Also: // CXTBrowseEdit, BEN_XT_LABELEDITCANCEL // -------------------------------------------------------------------- const UINT BEN_XT_LABELEDITEND = (WM_XTP_CONTROLS_BASE + 7); // #define ON_BEN_XT_LABELEDITEND(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_BEN_XT_LABELEDITEND #define ON_BEN_XT_LABELEDITEND(id, memberFxn) \ ON_CONTROL(BEN_XT_LABELEDITEND, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // BEN_XT_LABELEDITCANCEL notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The BEN_XT_LABELEDITCANCEL notification message is sent // when the user performs a browse operation, but then selects // another control or closes the dialog box. It indicates the user's // initial operation was ignored. The owner window of the browse edit // receives this notification through the WM_COMMAND message. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CBrowseDialog, CDialog // //{{AFX_MSG_MAP(CBrowseDialog) // ON_BEN_XT_LABELEDITCANCEL(IDC_CTRL_ID, OnLabelEditCancel) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CBrowseDialog::OnLabelEditCancel() // { // // TODO: Handle command. // } // // See Also: // CXTBrowseEdit, BEN_XT_LABELEDITEND // ---------------------------------------------------------------------- const UINT BEN_XT_LABELEDITCANCEL = (WM_XTP_CONTROLS_BASE + 8); // #define ON_BEN_XT_LABELEDITCANCEL(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_BEN_XT_LABELEDITCANCEL #define ON_BEN_XT_LABELEDITCANCEL(id, memberFxn) \ ON_CONTROL(BEN_XT_LABELEDITCANCEL, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // LBN_XT_LABELEDITEND notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The LBN_XT_LABELEDITEND notification message is sent // to inform the owner whenever the label edit operation has ended. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_LBN_XT_LABELEDITEND(IDC_CTRL_ID, OnLabelEditEnd) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnLabelEditEnd() // { // // TODO: Handle command. // } // // See Also: // CXTEditListBox, LBN_XT_LABELEDITCANCEL, LBN_XT_NEWITEM, LBN_XT_PREDELETEITEM, LBN_XT_DELETEITEM, LBN_XT_MOVEITEMUP, LBN_XT_MOVEITEMDOWN, LBN_XT_PRENEWITEM // ---------------------------------------------------------------------- const DWORD LBN_XT_LABELEDITEND = BEN_XT_LABELEDITEND; // #define ON_LBN_XT_LABELEDITEND(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_LBN_XT_LABELEDITEND #define ON_LBN_XT_LABELEDITEND(id, memberFxn) \ ON_CONTROL(LBN_XT_LABELEDITEND, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // LBN_XT_LABELEDITCANCEL notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The LBN_XT_LABELEDITCANCEL notification message is sent // to inform the owner whenever the label edit operation has been canceled. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_LBN_XT_LABELEDITCANCEL(IDC_CTRL_ID, OnLabelEditCancel) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnLabelEditCancel() // { // // TODO: Handle command. // } // // See Also: // CXTEditListBox, LBN_XT_LABELEDITEND, LBN_XT_NEWITEM, LBN_XT_PREDELETEITEM, LBN_XT_DELETEITEM, LBN_XT_MOVEITEMUP, LBN_XT_MOVEITEMDOWN, LBN_XT_PRENEWITEM // ---------------------------------------------------------------------- const DWORD LBN_XT_LABELEDITCANCEL = BEN_XT_LABELEDITCANCEL; // #define ON_LBN_XT_LABELEDITCANCEL(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_LBN_XT_LABELEDITCANCEL #define ON_LBN_XT_LABELEDITCANCEL(id, memberFxn) \ ON_CONTROL(LBN_XT_LABELEDITCANCEL, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // LBN_XT_NEWITEM notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The LBN_XT_NEWITEM notification message is sent // to inform the owner whenever the new item button has been pressed. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_LBN_XT_NEWITEM(IDC_CTRL_ID, OnNewItem) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnNewItem() // { // // TODO: Handle command. // } // // See Also: // CXTEditListBox, LBN_XT_LABELEDITEND, LBN_XT_LABELEDITCANCEL, LBN_XT_PREDELETEITEM, LBN_XT_DELETEITEM, LBN_XT_MOVEITEMUP, LBN_XT_MOVEITEMDOWN, LBN_XT_PRENEWITEM // ---------------------------------------------------------------------- const UINT LBN_XT_NEWITEM = (WM_XTP_CONTROLS_BASE + 9); // #define ON_LBN_XT_NEWITEM(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_LBN_XT_NEWITEM #define ON_LBN_XT_NEWITEM(id, memberFxn) \ ON_CONTROL(LBN_XT_NEWITEM, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // LBN_XT_PREDELETEITEM notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The LBN_XT_PREDELETEITEM notification message is sent // to inform the owner just before an item is deleted. This is // useful for retrieving information about the selected item, such // as item data, before it is removed from the edit list control. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_LBN_XT_PREDELETEITEM(IDC_CTRL_ID, OnPreDeleteItem) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnPreDeleteItem() // { // // TODO: Handle command. // } // // See Also: // CXTEditListBox, LBN_XT_LABELEDITEND, LBN_XT_LABELEDITCANCEL, LBN_XT_NEWITEM, LBN_XT_DELETEITEM, LBN_XT_MOVEITEMUP, LBN_XT_MOVEITEMDOWN, LBN_XT_PRENEWITEM // ---------------------------------------------------------------------- const UINT LBN_XT_PREDELETEITEM = (WM_XTP_CONTROLS_BASE + 10); // #define ON_LBN_XT_PREDELETEITEM(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_LBN_XT_PREDELETEITEM #define ON_LBN_XT_PREDELETEITEM(id, memberFxn) \ ON_CONTROL(LBN_XT_PREDELETEITEM, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // LBN_XT_DELETEITEM notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The LBN_XT_DELETEITEM notification message is sent // to inform the owner whenever the delete item button has been pressed. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_LBN_XT_DELETEITEM(IDC_CTRL_ID, OnDeleteItem) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnDeleteItem() // { // // TODO: Handle command. // } // // See Also: // CXTEditListBox, LBN_XT_LABELEDITEND, LBN_XT_LABELEDITCANCEL, LBN_XT_NEWITEM, LBN_XT_PREDELETEITEM, LBN_XT_MOVEITEMUP, LBN_XT_MOVEITEMDOWN, LBN_XT_PRENEWITEM // ---------------------------------------------------------------------- const UINT LBN_XT_DELETEITEM = (WM_XTP_CONTROLS_BASE + 11); // #define ON_LBN_XT_DELETEITEM(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_LBN_XT_DELETEITEM #define ON_LBN_XT_DELETEITEM(id, memberFxn) \ ON_CONTROL(LBN_XT_DELETEITEM, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // LBN_XT_MOVEITEMUP notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The LBN_XT_MOVEITEMUP notification message is sent // to inform the owner whenever the move item up button has been pressed. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_LBN_XT_MOVEITEMUP(IDC_CTRL_ID, OnMoveItemUp) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnMoveItemUp() // { // // TODO: Handle command. // } // // See Also: // CXTEditListBox, LBN_XT_LABELEDITEND, LBN_XT_LABELEDITCANCEL, LBN_XT_NEWITEM, LBN_XT_PREDELETEITEM, LBN_XT_DELETEITEM, LBN_XT_MOVEITEMDOWN, LBN_XT_PRENEWITEM // ---------------------------------------------------------------------- const UINT LBN_XT_MOVEITEMUP = (WM_XTP_CONTROLS_BASE + 12); // #define ON_LBN_XT_MOVEITEMUP(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_LBN_XT_MOVEITEMUP #define ON_LBN_XT_MOVEITEMUP(id, memberFxn) \ ON_CONTROL(LBN_XT_MOVEITEMUP, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // LBN_XT_MOVEITEMDOWN notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The LBN_XT_MOVEITEMDOWN notification message is sent // to inform the owner whenever the move item down button has been pressed. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_LBN_XT_MOVEITEMDOWN(IDC_CTRL_ID, OnMoveItemDown) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnMoveItemDown() // { // // TODO: Handle command. // } // // See Also: // CXTEditListBox, LBN_XT_LABELEDITEND, LBN_XT_LABELEDITCANCEL, LBN_XT_NEWITEM, LBN_XT_PREDELETEITEM, LBN_XT_DELETEITEM, LBN_XT_MOVEITEMUP, LBN_XT_PRENEWITEM // ---------------------------------------------------------------------- const UINT LBN_XT_MOVEITEMDOWN = (WM_XTP_CONTROLS_BASE + 13); // #define ON_LBN_XT_MOVEITEMDOWN(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_LBN_XT_MOVEITEMDOWN #define ON_LBN_XT_MOVEITEMDOWN(id, memberFxn) \ ON_CONTROL(LBN_XT_MOVEITEMDOWN, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // LBN_XT_PRENEWITEM notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The LBN_XT_PRENEWITEM notification message is sent // to inform the owner whenever that a new item is about to be // edited in EditListBox. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_LBN_XT_PRENEWITEM(IDC_CTRL_ID, OnPreNewItem) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnPreNewItem() // { // // TODO: Handle command. // } // // See Also: // CXTEditListBox, LBN_XT_LABELEDITEND, LBN_XT_LABELEDITCANCEL, LBN_XT_NEWITEM, LBN_XT_PREDELETEITEM, LBN_XT_DELETEITEM, LBN_XT_MOVEITEMUP, LBN_XT_MOVEITEMDOWN // ---------------------------------------------------------------------- const UINT LBN_XT_PRENEWITEM = (WM_XTP_CONTROLS_BASE + 14); // #define ON_LBN_XT_PRENEWITEM(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_LBN_XT_PRENEWITEM #define ON_LBN_XT_PRENEWITEM(id, memberFxn) \ ON_CONTROL(LBN_XT_PRENEWITEM, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE const UINT LBN_XT_ONBROWSE = (WM_XTP_CONTROLS_BASE + 27); // #define ON_LBN_XT_ONBROWSE(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_LBN_XT_ONBROWSE #define ON_LBN_XT_ONBROWSE(id, memberFxn) \ ON_CONTROL(LBN_XT_ONBROWSE, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // SON_XT_ITEMEXPANDING notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The SON_XT_ITEMEXPANDING notification message is sent // to inform the owner whenever the search options control is expanding. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_SON_XT_ITEMEXPANDING(IDC_CTRL_ID, OnItemExpanding) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnItemExpanding() // { // // TODO: Handle command. // } // // See Also: // CXTSearchOptionsCtrl, SON_XT_ITEMEXPAND, SON_XT_ITEMCONTRACTING, SON_XT_ITEMCONTRACT // ---------------------------------------------------------------------- const UINT SON_XT_ITEMEXPANDING = (WM_XTP_CONTROLS_BASE + 15); // #define ON_SON_XT_ITEMEXPANDING(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_SON_XT_ITEMEXPANDING #define ON_SON_XT_ITEMEXPANDING(id, memberFxn) \ ON_CONTROL(SON_XT_ITEMEXPANDING, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // SON_XT_ITEMEXPAND notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The SON_XT_ITEMEXPAND notification message is sent // to inform the owner whenever the search options control has expanded. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_SON_XT_ITEMEXPAND(IDC_CTRL_ID, OnItemExpand) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnItemExpand() // { // // TODO: Handle command. // } // // See Also: // CXTSearchOptionsCtrl, SON_XT_ITEMEXPANDING, SON_XT_ITEMCONTRACTING, SON_XT_ITEMCONTRACT // ---------------------------------------------------------------------- const UINT SON_XT_ITEMEXPAND = (WM_XTP_CONTROLS_BASE + 16); // #define ON_SON_XT_ITEMEXPAND(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_SON_XT_ITEMEXPAND #define ON_SON_XT_ITEMEXPAND(id, memberFxn) \ ON_CONTROL(SON_XT_ITEMEXPAND, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // SON_XT_ITEMCONTRACTING notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The SON_XT_ITEMCONTRACTING notification message is sent // to inform the owner whenever the search options control is contracting. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_SON_XT_ITEMCONTRACTING(IDC_CTRL_ID, OnItemContracting) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnItemContracting() // { // // TODO: Handle command. // } // // See Also: // CXTSearchOptionsCtrl, SON_XT_ITEMEXPANDING, SON_XT_ITEMEXPAND, SON_XT_ITEMCONTRACT // ---------------------------------------------------------------------- const UINT SON_XT_ITEMCONTRACTING = (WM_XTP_CONTROLS_BASE + 17); // #define ON_SON_XT_ITEMCONTRACTING(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_SON_XT_ITEMCONTRACTING #define ON_SON_XT_ITEMCONTRACTING(id, memberFxn) \ ON_CONTROL(SON_XT_ITEMCONTRACTING, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // SON_XT_ITEMCONTRACT notification message handler. // Parameters: // id - Resource ID for the control. // memberFxn - Name of member function to handle the message. // Remarks: // The SON_XT_ITEMCONTRACT notification message is sent // to inform the owner whenever the search options control has contracted. // Example: // Here is an example of how an application would handle this message. // // BEGIN_MESSAGE_MAP(CAppDialog, CDialog // //{{AFX_MSG_MAP(CAppDialog) // ON_SON_XT_ITEMCONTRACT(IDC_CTRL_ID, OnItemContract) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CAppDialog::OnItemContract() // { // // TODO: Handle command. // } // // See Also: // CXTSearchOptionsCtrl, SON_XT_ITEMEXPANDING, SON_XT_ITEMEXPAND, SON_XT_ITEMCONTRACTING // ---------------------------------------------------------------------- const UINT SON_XT_ITEMCONTRACT = (WM_XTP_CONTROLS_BASE + 18); // #define ON_SON_XT_ITEMCONTRACT(id, memberFxn) //{{AFX_CODEJOCK_PRIVATE #undef ON_SON_XT_ITEMCONTRACT #define ON_SON_XT_ITEMCONTRACT(id, memberFxn) \ ON_CONTROL(SON_XT_ITEMCONTRACT, id, memberFxn) //}}AFX_CODEJOCK_PRIVATE // -------------------------------------------------------------------------------------------- // Summary: // The XTWM_OUTBAR_NOTIFY message is sent to the outlook bar // owner window whenever an action occurs within the control. // Parameters: // nBarAction - (int) wParam; - value of wParam specifies an Outlook bar // value that indicates the users request. This parameter can be // one of the values listed in the Remarks section. // pOBInfo - pOBInfo (XT_OUTBAR_INFO*) lParam; - value of lParam // points to an XT_OUTBAR_INFO structure that contains // information for the specified item. The item can either be a // folder group or icon item, depending on the value of the nBarAction // parameter. This pointer should never be NULL. // Remarks: // When the user performs an action in the Outlook bar, the XTWM_OUTBAR_NOTIFY // message is sent to the Outlook bar's owner window. nBarAction can be one of // the following values:

// // * OBN_XT_ITEMCLICK The user has selected an item in the // Outlook bar. // * OBN_XT_ONLABELENDEDIT The user has completed editing an // item's label. // * OBN_XT_ONGROUPENDEDIT The user has completed editing a // folder's label. // * OBN_XT_DRAGITEM The user has dragged an item to a new // location in the Outlook bar. // * OBN_XT_FOLDERCHANGE The user has selected a new folder // item. // * OBN_XT_ITEMHOVER The user's mouse is hovering over an // item in the Outlook bar. // * OBN_XT_DELETEITEM The user has chosen to delete an item // from the Outlook bar. // * OBN_XT_DELETEFOLDER The user has chosen to delete a // folder from the Outlook bar. // * OBN_XT_ITEMRCLICK The user has right clicked on the // Outlook bar folder. // Returns: // If the application is to process this message, the return value // should be TRUE. If the return value is FALSE, the user's action is // ignored. // Example: // Here is an example of how an application would process the XTWM_OUTBAR_NOTIFY // message. // // int nBarAction = (int)wParam; // // // Cast the lParam to an XT_OUTBAR_INFO* struct pointer. // XT_OUTBAR_INFO* pOBInfo = (XT_OUTBAR_INFO*)lParam; // ASSERT(pOBInfo); // // switch (nBarAction) // { // case OBN_XT_ITEMCLICK: // case OBN_XT_FOLDERCHANGE: // case OBN_XT_ONLABELENDEDIT: // case OBN_XT_ONGROUPENDEDIT: // case OBN_XT_DRAGITEM: // case OBN_XT_ITEMHOVER: // case OBN_XT_ITEMRCLICK: // TRACE2("Index: %d, Name: %s.\\n", pOBInfo-\>nIndex, pOBInfo-\>lpszText); // break; // // case OBN_XT_DELETEITEM: // if (AfxMessageBox(_T("Remove this folder shortcut?"), // MB_ICONWARNING | MB_YESNO) == IDNO) // { // return FALSE; // Return FALSE to abort the action. // } // break; // // case OBN_XT_DELETEFOLDER: // if (AfxMessageBox(_T("Remove the specified folder?"), // MB_ICONWARNING | MB_YESNO) == IDNO) // { // return FALSE; // Return FALSE to abort the action. // } // break; // } // return TRUE; // // See Also: // CXTMenuListBox, CXTOutBarCtrl // -------------------------------------------------------------------------------------------- const UINT XTWM_OUTBAR_NOTIFY = (WM_XTP_CONTROLS_BASE + 19); const int OBN_XT_ITEMCLICK = 1; // const int OBN_XT_ONLABELENDEDIT = 2; // const int OBN_XT_ONGROUPENDEDIT = 3; // const int OBN_XT_DRAGITEM = 4; // const int OBN_XT_FOLDERCHANGE = 5; // const int OBN_XT_ITEMHOVER = 6; // const int OBN_XT_DELETEITEM = 7; // const int OBN_XT_DELETEFOLDER = 8; // const int OBN_XT_BEGINDRAG = 9; // const int OBN_XT_ITEMRCLICK =10; // // ---------------------------------------------------------------------------------------------------- // Summary: // The XTWM_SHELL_NOTIFY message is sent to the CXTShellTreeCtrl // or CXTShellListCtrl owner whenever an action occurs within // the control. // Parameters: // nShellAction - (int) wParam; - value of wParam specifies a shell tree // value that indicates the users request. See Remarks section for a list of values. // pItemData - (XT_TVITEMDATA*) lParam; - value of lParam points to an XT_TVITEMDATA // structure that contains information for the specified item. // Depending on the action, this pointer can be NULL. // Remarks: // When the user performs an action in the shell tree, the XTWM_SHELL_NOTIFY // message is sent to the shell tree's owner window.

// // The nShellAction parameter can be one of the following values:

// // * SHN_XT_SHELLMENU Shell context menu selection made. // * SHN_XT_TREESELCHANGE Tree selection made. // * SHN_XT_SELECTCHILD Child tree node selected. // * SHN_XT_NOFOLDER Item selected was not a folder. // * SHN_XT_INETFOLDER Item selected was the Internet // folder. // * SHN_XT_CONTENTSCHANGED Indicates the folder's contents // have changed. // * SHN_XT_REFRESHFOLDER Indicates the folder needs to be // updated. // * SHN_XT_REFRESHTREE Indicates the tree needs to be // updated. // Returns: // If the application is to process this message, the return value // should be 0. // Example: // Here is an example of how an application would process the XTWM_SHELL_NOTIFY // message. // // int nShellAction = (int)wParam; // // // Cast the lParam to an XT_TVITEMDATA* struct pointer. // XT_TVITEMDATA* pItemData = (XT_TVITEMDATA*)lParam; // ASSERT(pItemData); // // switch (nBarAction) // { // case SHN_XT_SHELLMENU: // case SHN_XT_TREESELCHANGE: // case SHN_XT_SELECTCHILD: // case SHN_XT_NOFOLDER: // case SHN_XT_INETFOLDER: // case SHN_XT_CONTENTSCHANGED: // case SHN_XT_REFRESHFOLDER: // case SHN_XT_REFRESHTREE: // // TODO: Handle shell notification message. // TRACE0("Shell notification was sent.n"); // break; // } // return 0; // // See Also: // CXTShellTreeCtrl, CXTShellListCtrl, CXTShellListBase, // CXTDirWatcher // ---------------------------------------------------------------------------------------------------- const UINT XTWM_SHELL_NOTIFY = (WM_XTP_CONTROLS_BASE + 20); const int SHN_XT_SHELLMENU = 1; // const int SHN_XT_TREESELCHANGE = 2; // const int SHN_XT_SELECTCHILD = 3; // const int SHN_XT_NOFOLDER = 4; // const int SHN_XT_INETFOLDER = 5; // const int SHN_XT_CONTENTSCHANGED = 6; // const int SHN_XT_REFRESHFOLDER = 7; // const int SHN_XT_REFRESHTREE = 8; // // ------------------------------------------------------------------------------------- // Summary: // The TIN_XT_TRAYICON message is sent to the CXTTrayIcon // window's owner whenever a mouse event occurs in the CXTTrayIcon. // Parameters: // uID - (UINT) wParam; - value of wParam specifies the // resource ID of the icon associated with the CXTTrayIcon // object. // uMouseMsg - (UINT) lParam; - value of lParam specifies the mouse // or keyboard message associated with the event. // Remarks: // When a mouse or keyboard event occurs on a tray icon, the TIN_XT_TRAYICON // message is sent to the tray icon's owner window. // Returns: // If the application is to process this message, the return value // should be 0. // Example: // Here is an example of how an application would process the TIN_XT_TRAYICON // message. // // BEGIN_MESSAGE_MAP(CMainFrame, CXTMDIFrameWnd) // //{{AFX_MSG_MAP(CMainFrame) // ON_MESSAGE(TIN_XT_TRAYICON, OnTrayIconNotify) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // LRESULT CMainFrame::OnTrayIconNotify(WPARAM wParam, LPARAM lParam) // { // UINT uID = (UINT) wParam; // resource ID of the tray icon. // UINT uMouseMsg = (UINT) lParam; // mouse message that was sent. // // switch (uMouseMsg) // { // case WM_RBUTTONUP: // { // CMenu menu; // VERIFY(menu.LoadMenu(IDR_MAINFRAME)); // // CMenu* pPopup = menu.GetSubMenu(0); // ASSERT(pPopup != NULL); // CWnd* pWndPopupOwner = this; // // // Insert the restore menu command into the popup. // if (m_bIsVisible == false) // { // pPopup-\>InsertMenu(0, MF_BYPOSITION, // IDR_RESTORE, _T("&Restore Window...")); // // pPopup-\>InsertMenu(1, MF_BYPOSITION | MF_SEPARATOR, // IDR_RESTORE); // // // Make restore command bold. // \::SetMenuDefaultItem(pPopup-\>m_hMenu, IDR_RESTORE, FALSE); // } // else // { // // Make the exit command bold. // \::SetMenuDefaultItem(pPopup-\>m_hMenu, ID_APP_EXIT, FALSE); // } // // // Display the menu at the current mouse location. There's a "bug" // // (Microsoft calls it a feature) in Windows 95 that requires calling // // SetForegroundWindow. To find out more, search for Q135788 in MSDN. // // // CPoint point; // GetCursorPos(&point); // \::SetForegroundWindow(m_hWnd); // // while (pWndPopupOwner-\>GetStyle() & WS_CHILD) // pWndPopupOwner = pWndPopupOwner-\>GetParent(); // // int iCmd = pPopup-\>TrackPopupMenu( // TPM_RETURNCMD | TPM_LEFTALIGN | TPM_RIGHTBUTTON, // point.x, point.y, pWndPopupOwner); // // // at this point we want to make sure that the app is visible // // after the user makes a menu selection - this is just one way // // of doing so: // // switch (iCmd) // { // case 0: // // user canceled menu - do nothing // break; // // // these are commands for which we don't need to make the // // main app window visible // case ID_APP_EXIT: // PostMessage(WM_COMMAND, iCmd, 0); // just post the command // break; // // // for all other menu commands - make sure the window is // // visible before we continue // default: // // make main window visible // OnRestore(); // PostMessage(WM_COMMAND, iCmd, 0); // post the command // break; // } // // return 1; // let the tray icon know that we handled this message. // } // // case WM_LBUTTONDBLCLK: // OnRestore(); // return 1; // let the tray icon know that we handled this message. // } // // return 0; // } // // See Also: // CXTTrayIcon // ------------------------------------------------------------------------------------- const UINT TIN_XT_TRAYICON = (WM_XTP_CONTROLS_BASE + 21); // ---------------------------------------------------------------------- // Summary: // The CPWN_XT_PUSHPINBUTTON message is sent to the owner of a CXTCaptionPopupWnd whenever // the push pin button selection has been made. // Remarks: // When the user makes a selection of the push pin button, the CPWN_XT_PUSHPINBUTTON message is // sent to the caption popup window's owner window. // Example: // Here is an example of how an application would process the TCN_XT_SELCHANGE // message. // // BEGIN_MESSAGE_MAP(CMainFrame, CXTMDIFrameWnd) // //{{AFX_MSG_MAP(CMainFrame) // ON_MESSAGE_VOID(CPWN_XT_PUSHPINBUTTON, OnPushPinButton) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CMainFrame::OnPushPinButton() // { // // TODO: Add your message handler code here and/or call default // m_wndSplitter2.ShowColumn(); // m_nColumn = 1; // } // // See Also: // CXTCaption, CXTCaptionPopupWnd // ---------------------------------------------------------------------- const UINT CPWN_XT_PUSHPINBUTTON = (WM_XTP_CONTROLS_BASE + 22); // ---------------------------------------------------------------------- // Summary: // The CPWN_XT_PUSHPINCANCEL message is sent to the owner of a CXTCaptionPopupWnd whenever // the push pin button selection has been canceled. // Remarks: // When the user cancels a selection of the push pin button, the CPWN_XT_PUSHPINCANCEL message is // sent to the caption popup window's owner window. // Example: // Here is an example of how an application would process the TCN_XT_SELCHANGE // message. // // BEGIN_MESSAGE_MAP(CMainFrame, CXTMDIFrameWnd) // //{{AFX_MSG_MAP(CMainFrame) // ON_MESSAGE_VOID(CPWN_XT_PUSHPINCANCEL, OnPushPinCancel) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // void CMainFrame::OnPushPinCancel() // { // // TODO: Add your message handler code here and/or call default // } // // See Also: // CXTCaption, CXTCaptionPopupWnd // ---------------------------------------------------------------------- const UINT CPWN_XT_PUSHPINCANCEL = (WM_XTP_CONTROLS_BASE + 23); //{{AFX_CODEJOCK_PRIVATE const UINT TCN_XT_SELCHANGE = (WM_XTP_CONTROLS_BASE + 24); // deprecated, use TCN_SELCHANGE instead. const UINT TCN_XT_SELCHANGING = (WM_XTP_CONTROLS_BASE + 25); // deprecated, use TCN_SELCHANGING instead. //}}AFX_CODEJOCK_PRIVATE // ---------------------------------------------------------------------- // Summary: // The XTWM_UPDATECOLOR message is used to send notification that // the color selection has changed. // Parameters: // crNew - (COLORREF) wParam; - newly selected RGB color. // Remarks: // This message is sent to notify the owner that a color selection has changed. // Example: // Here is an example of how an application would process the XTWM_UPDATECOLOR // message. // // BEGIN_MESSAGE_MAP(CXTColorPageCustom, CXTThemePropertyPage) // //{{AFX_MSG_MAP(CMainFrame) // ON_MESSAGE(XTWM_UPDATECOLOR, OnUpdateColor) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // LRESULT CXTColorPageCustom::OnUpdateColor(WPARAM wParam, LPARAM lParam) // { // UNUSED_ALWAYS(lParam); // COLORREF crNew = (COLORREF)wParam; // } // // See Also: // CXTColorDialog, CXTColorBase, CXTColorLum, CXTColorPageCustom, CXTColorHex, CXTColorPageStandard // ---------------------------------------------------------------------- const DWORD XTWM_UPDATECOLOR = (WM_XTP_CONTROLS_BASE + 26); ////////////////////////////////////////////////////////////////////// #endif // #if !defined(__XTNOTIFY_H__)