BitmapButton
所属分类:Windows编程
开发工具:Others
文件大小:35KB
下载次数:605
上传日期:2008-01-21 15:16:34
上 传 者:
lucky27
说明: PocketPC2003的MFC程序漂亮的位图按钮的evc实现(带例程)
现在开发一些PPC上应用程序,最一个好看的界面也是很重要的,给人以美好的感觉。位图按钮是其中的一个重要部分。
这个位图按钮是用VC上98年就出来的一个CButtonST类修改而来的,因为PPC上一些函数的处理和PC不同,所以进行了修改。例如PPC上一般情况下,没有鼠标在没有按下时划过这样的事件,不过这里还是做了这种情况的处理。再就是DrawText函数,要移动一下位置才能够正确画到按钮中央。
将BtnST文件复制就可以使用。
通过SetIcon函数来指定按钮的鼠标在其中和不在其中的图片,给它两个图标资源就可以了。
按钮有几种设置可以选择,是否为平按钮(PPC上也可以做突起按钮),是否绘画边框,文字方向等等。
如果需要实现更多的特效,可以修改CBtnST类的DrawTheIcon中具体绘图的部分来实现。
基本使用方法:
1.在对话框类中添加一个CButtonST变量
2.在Initdialog中SetIcon(ICON1,ICON2)
3.在DoDataExchange中添加DDX_Control(pDX, 按钮ID, CButtonST变量)
(err)
文件列表:
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\ARMV4Rel\BitmapButton.exe (16384, 2005-12-20)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\ARMV4Rel (0, 2005-12-20)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BitmapButton.cpp (1920, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BitmapButton.h (1401, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BitmapButton.rc (4824, 2005-12-20)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BitmapButton.vcb (74752, 2005-12-20)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BitmapButton.vcc (838, 2005-12-20)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BitmapButton.vco (55808, 2005-12-20)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BitmapButton.vcp (13672, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BitmapButton.vcw (554, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BitmapButtonDlg.cpp (2136, 2005-12-20)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BitmapButtonDlg.h (1443, 2005-12-20)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BtnST.cpp (12645, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\BtnST.h (2755, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\newres.h (768, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\res\bitmap1.bmp (630, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\res\BitmapButton.ico (1078, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\res\BitmapButton.rc2 (422, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\res\ico00001.ico (766, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\res\icon1.ico (766, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\res (0, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\resource.h (782, 2005-12-20)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\StdAfx.cpp (210, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton\StdAfx.h (1046, 2005-12-19)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程)\BitmapButton (0, 2005-12-20)
PocketPC2003的MFC程序漂亮的位图按钮的实现(带例程) (0, 2006-08-11)
========================================================================
Microsoft Foundation Class Library for Windows CE: BitmapButton
========================================================================
AppWizard has created this BitmapButton application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your BitmapButton application.
BitmapButton.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CBitmapButtonApp application class.
BitmapButton.cpp
This is the main application source file that contains the application
class CBitmapButtonApp.
BitmapButton.rc
This is a listing of all of the Microsoft Windows CE resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
eMbedded Visual C++.
res\BitmapButton.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file BitmapButton.rc.
res\BitmapButton.rc2
This file contains resources that are not edited by Microsoft
eMbedded Visual C++. You should place all resources not
editable by the resource editor in this file.
BitmapButton.vcc
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one dialog class:
BitmapButtonDlg.h, BitmapButtonDlg.cpp - the dialog
These files contain your CBitmapButtonDlg class. This class defines
the behavior of your application's main dialog. The dialog's
template is in BitmapButton.rc, which can be edited in Microsoft
Developer Studio.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named BitmapButton.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft eMbedded Visual C++ reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
If your application uses MFC in a shared DLL, and your application is
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFCWCXXX.DLL from
the Microsoft eMbedded Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFCWCDEU.DLL contains resources translated to German.) If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.
/////////////////////////////////////////////////////////////////////////////
近期下载者:
相关文件:
收藏者: