/***********************************************************************/ /* Copyright (C) 2002 Definitive Solutions, Inc. All Rights Reserved. */ /* THIS COMPUTER PROGRAM IS PROPRIETARY AND CONFIDENTIAL TO DEFINITIVE */ /* SOLUTIONS, INC. AND ITS LICENSORS AND CONTAINS TRADE SECRETS OF */ /* DEFINITIVE SOLUTIONS, INC. THAT ARE PROVIDED PURSUANT TO A WRITTEN */ /* AGREEMENT CONTAINING RESTRICTIONS ON USE AND DISCLOSURE. ANY USE, */ /* REPRODUCTION, OR TRANSFER EXCEPT AS PROVIDED IN SUCH AGREEMENT */ /* IS STRICTLY PROHIBITED. */ /***********************************************************************/ ///////////////////////////////////////////////////////////////////////////// // How to add this class to your application. // // Add MyToolTipCtrl.cpp, MyToolTipCtrl.h, MyToolTipCtrl.rc2, // MyToolTipCtrlResource.h, and MyToolTipCtrlResource.wav to your project // in the usual folders. // // Add this line to the top of your RC2 file: // #include "MyToolTipCtrlResource.h" // MyToolTipCtrl resources. // // Add this line to the end of your RC2 file: // #include "MyToolTipCtrl.rc2" // MyToolTipCtrl resources. // // The boolean controlling whether sound is played is stored in the Registry at // "HKCU \ Software \ YourCompanyName \ YourAppName \ Settings \ MyToolTipSound". // ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// // MyToolTipCtrl.h // // Tooltip control.with popup sound // // Copyright (C) 1997, 1998 Giancarlo Iovino (giancarlo@saria.com) // All rights reserved. May not be sold for profit. // // Thanks to Anthony Petruso for the PlayResource function. ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MYTOOLTIPCTRL_H_02345FK301_02D3F0_022GE54938_ENG_INCLUDED_) #define AFX_MYTOOLTIPCTRL_H_02345FK301_02D3F0_022GE54938_ENG_INCLUDED_ #pragma once ///////////////////////////////////////////////////////////////////////////// // MyToolTipCtrl class MyToolTipCtrl : public CToolTipCtrl { // Construction. public: MyToolTipCtrl(); virtual ~MyToolTipCtrl(); // Operations. public: //{{AFX_VIRTUAL(MyToolTipCtrl) //}}AFX_VIRTUAL // Implementation. private: static bool PlayResource(WORD wResourceID); // Generated message map functions. protected: //{{AFX_MSG(MyToolTipCtrl) afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos); //}}AFX_MSG DECLARE_MESSAGE_MAP() // Data. private: bool m_bEnableSound; // Wants the sound to click. }; #endif // !defined(AFX_MYTOOLTIPCTRL_H_02345FK301_02D3F0_022GE54938_ENG_INCLUDED_)