⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unit2.cpp

📁 本书《C++Builder与WindowsAPI经典范例》附含配套光盘包括132个WindowsAPI函数及206个完整、可执行的实例
💻 CPP
字号:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop

#include "Unit2.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
    : TForm(Owner)
{//将闲置属性作为布尔值运算
Button1->Default = true;
}
//---------------------------------------------------------------------------
//在Win32 Help中,搜索Edit Control Styles字符串,即可取得完整的字符串组件类型标志
void __fastcall TForm1::Button1Click(TObject *Sender)
{
//取得Edit1的原有类型数据
DWORD dwStyle = ::GetWindowLong(Edit1->Handle, GWL_STYLE);
//由按钮属性来切换Edit单行字符串组件的特有功能

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -