CEditFlat - 平面风格编辑控件






2.56/5 (6投票s)
1999年11月26日

77203

2792
这是一个平面样式编辑控件,实现了标准编辑控件支持的所有样式。
要使用这个类,只需在您的项目中包含 EditFlat.cpp
和 EditFlat.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);