65.9K
CodeProject 正在变化。 阅读更多。
Home

CEditFlat - 平面风格编辑控件

starIconstarIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIcon

2.56/5 (6投票s)

1999年11月26日

viewsIcon

77203

downloadIcon

2792

  • 下载演示项目 - 41 KB
  • 下载源代码 - 4 Kb
  • Sample Image

    这是一个平面样式编辑控件,实现了标准编辑控件支持的所有样式。

    要使用这个类,只需在您的项目中包含 EditFlat.cppEditFlat.h 文件,并将您的 CEdit 对象替换为 CEditFlat 对象即可。

    有两个额外的成员函数允许您指定在某些事件发生时要播放的声音。

    	// 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);
    
    © . All rights reserved.