Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

CEditFlat - flat style edit control

0.00/5 (No votes)
25 Nov 1999 1  
  • Download demo project - 41 Kb
  • Download source - 4 Kb
  • Sample Image

    This is a flat edit control that implements all styles supported by the standard edit control.

    To use this class, simple include the EditFlat.cpp and EditFlat.h files in your project, and replace your CEdit objects with CEditFlat objects.

    There are two extra member functions that allow you to specify sounds to be played on certain events:

    	// LPCTSTR pStrActivateSound = sound when mouse on control activated
    
    	// LPCTSTR pStrVerticalSound = sound when vertical scroll clicked
    
    	// LPCTSTR pStrHorizontalSound = sound when horizontal scroll clicked
    
    	BOOL SetSounds (LPCTSTR pStrActivateSound, LPCTSTR pStrVerticalSound = NULL, 
    	                LPCTSTR pStrHorizontalSound = NULL);
    
    	// Set up resource instance (sound will be load from this resource)
    
    	// if function was not called, default instance is used
    
    	BOOL SetResourceHandle (HINSTANCE hInstance);
    

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here