65.9K
CodeProject is changing. Read more.
Home

CEditFlat - flat style edit control

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.56/5 (6 votes)

Nov 26, 1999

viewsIcon

76801

downloadIcon

2792

  • 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);