CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - h.3
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - h.3 - List
[
Button control
]
CPushPinButtonv1.21
DL : 0
CPushPinButton类继承于CButton类,功能是完成一个图钉按钮的效果。就像VC++中一个控件的属性对话框中的那个图钉按钮。 类的使用步骤: 1.在工程中加入PushPin.cpp和PushPin.h两个文件,并且在需要用到这个类的文件中加入#include \"PushPin.h\"语句。 2.确保工程中加入了图片IDB_PUSHPIN或者IDB_PUSHPIN_HELP 3.在对话框中加入一个按钮,设置owner-draw属性,大小不限。 4.使用Classwizard定义一个按钮的成员变量,然后用CPushPinButton代替CButton声明 5.为确保在按钮状态发生变化时,类能正常运行,还应该用ReloadBitmaps方法响应WM_SETTINGCHANGE或者WM_WININICHANGE消息。
Date
: 2008-10-13
Size
: 19.49kb
User
:
wyb
[
Button control
]
CPushPinButtonv1.21
DL : 0
CPushPinButton类继承于CButton类,功能是完成一个图钉按钮的效果。就像VC++中一个控件的属性对话框中的那个图钉按钮。 类的使用步骤: 1.在工程中加入PushPin.cpp和PushPin.h两个文件,并且在需要用到这个类的文件中加入#include "PushPin.h"语句。 2.确保工程中加入了图片IDB_PUSHPIN或者IDB_PUSHPIN_HELP 3.在对话框中加入一个按钮,设置owner-draw属性,大小不限。 4.使用Classwizard定义一个按钮的成员变量,然后用CPushPinButton代替CButton声明 5.为确保在按钮状态发生变化时,类能正常运行,还应该用ReloadBitmaps方法响应WM_SETTINGCHANGE或者WM_WININICHANGE消息。-Class CPushPinButton inherited from CButton class, function is to complete a pushpin button effect. Like VC++ A control Properties dialog box that pushpin button. Type of use these steps: 1. PushPin.cpp in engineering and PushPin.h adding the two documents, and need to resort to this type of file by adding# Include PushPin.h statement. 2. Ensure that the works to add a picture IDB_PUSHPIN or IDB_PUSHPIN_HELP 3. In the dialog box to add a button, set the owner-draw attributes, size limitation. 4. Use ClassWizard to define a member variable of the button, and then replace CButton with CPushPinButton statement 5. In order to ensure that the button state change, the type can be normal operation, it should also be used to respond to ReloadBitmaps method WM_SETTINGCHANGE or WM_WININICHANGE news.
Date
: 2025-12-17
Size
: 19kb
User
:
wyb
[
Button control
]
3DButton
DL : 0
用法:1:将类文件加入到你的项目中 2:在你的对话框中加入一个按纽(button),设置其文本和大小。 3:利用classwizard为按纽设置一个CButten类的值m_3dtext,然后编缉对话框的头文件,将CButten m_3dtext 改为CMyTextButton m_3dtex 在 对话框的.CPP文件中加入#include "CMyTextButton.h" -Usage: 1: types of documents will be added to your project in 2: in your dialog box to add a button (button), set the text and size. 3: Using ClassWizard CButten for the button to set up a kind of value m_3dtext, and then editing the header file dialog box will CButten m_3dtext changed CMyTextButton m_3dtex in the dialog box. CPP file by adding# Include CMyTextButton.h
Date
: 2025-12-17
Size
: 2kb
User
:
sam
[
Button control
]
DibRadioButton
DL : 0
控件包含文件: 头文件 源文件 资源文件 DibRadioButton.h DibRadioButton.cpp Radio_button.bmp ==========================使用说明========================= 2008-1-8 1.修正了程序SetCheck后,导致位图的贴图错误等bug。 2.添加了设置控件以及文字的背景色设置。 3.添加了文字的字体颜色设置。 4.修正了些许其他的逻辑上的bug。 2008-1-2 1.将头文件和源文件纳入工程中,将资源文件Radio_button.bmp也导入工程资源,然后资源名称为:IDB_BITMAP_RADIO。 2.用RadioButton控件子类化,即用SubClassDlgItem。 3.必须调用DibRadioButton::SetSetsID(int nSetID)来设置当前RadioButton的套组(当前提供两套,橘红和嫩绿)。nSetID从1下标开始计算。即1表示第一套,2表示第二套。 4.可以调用CButton::SetCheck(int)来设置默认选中的RadioButton控件。 5.具体可以参考Demo程序。-1,修正了程序SetCheck后,导致划分的图最的贴图错误等错误。 2,新增了设定控件以及文字的背景各色设定。 3,新增了文字的字体颜色设定。 4,修正了些许其他的逻辑上的错误。 2,用的RadioButton控件子类化,即用SubClassDlgItem 。 3,必须调用DibRadioButton :: SetSetsID (INT 4。可以调用CButton的:: SetCheck (INT)来设定界面风格默认选中的单选按钮控件。 5。具体可以参考演示程序。
Date
: 2025-12-17
Size
: 10kb
User
:
谭黎明
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.