您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ Button_SetCheck函数代码示例

51自学网 2021-06-01 19:56:09
  C++
这篇教程C++ Button_SetCheck函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中Button_SetCheck函数的典型用法代码示例。如果您正苦于以下问题:C++ Button_SetCheck函数的具体用法?C++ Button_SetCheck怎么用?C++ Button_SetCheck使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了Button_SetCheck函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: OnInitDialog

void OnInitDialog(HWND hW) {	char *dev;	//int i;	LoadConf();	ComboBox_AddString(GetDlgItem(hW, IDC_BAYTYPE), "Expansion");	ComboBox_AddString(GetDlgItem(hW, IDC_BAYTYPE), "PC Card");	for (int j=0;j<2;j++)	{	for (int i=0; i<pcap_io_get_dev_num(); i++) {		dev = pcap_io_get_dev_desc(i,j);		int itm=ComboBox_AddString(GetDlgItem(hW, IDC_ETHDEV), dev);		ComboBox_SetItemData(GetDlgItem(hW, IDC_ETHDEV),itm,strdup(pcap_io_get_dev_name(i,j)));		if (strcmp(pcap_io_get_dev_name(i,j), config.Eth) == 0) {			ComboBox_SetCurSel(GetDlgItem(hW, IDC_ETHDEV), itm);		}	}	}	vector<tap_adapter> * al=GetTapAdapters();	for (size_t i=0; i<al->size(); i++) {				int itm=ComboBox_AddString(GetDlgItem(hW, IDC_ETHDEV), al[0][i].name.c_str());		ComboBox_SetItemData(GetDlgItem(hW, IDC_ETHDEV),itm,strdup( al[0][i].guid.c_str()));		if (strcmp(al[0][i].guid.c_str(), config.Eth) == 0) {			ComboBox_SetCurSel(GetDlgItem(hW, IDC_ETHDEV), itm);		}	}	Edit_SetText(GetDlgItem(hW, IDC_HDDFILE), config.Hdd);	Button_SetCheck(GetDlgItem(hW, IDC_ETHENABLED), config.ethEnable);	Button_SetCheck(GetDlgItem(hW, IDC_HDDENABLED), config.hddEnable);}
开发者ID:Aced14,项目名称:pcsx2,代码行数:34,


示例2: Button_SetCheck

voidds3t::UI::CheckBox::set_value_str (std::wstring str){  if (str.length () == 1 &&      str [0] == L'1') {    Button_SetCheck (handle, true);    numeric = true;  }  else if (str.length () == 1 &&           str [0] == L'0') {    Button_SetCheck (handle, false);    numeric = true;  }  else if (str.length () == 4 &&      towlower (str [0]) == L't' &&      towlower (str [1]) == L'r' &&      towlower (str [2]) == L'u' &&      towlower (str [3]) == L'e') {    Button_SetCheck (handle, true);    numeric = false;  }  else {    Button_SetCheck (handle, false);    numeric = false;  }}
开发者ID:Kaldaien,项目名称:ds3t,代码行数:27,


示例3: SetWindowText

void WinAdvSet::init_setting(const Action& act_){    SetWindowText(hwnd_gst, act_.get_gesture().c_str());    SetWindowText(hwnd_tgt, act_.get_target_name().c_str());    if (act_.get_cmd_size())    { SetWindowText(hwnd_cmd, act_.get_cmd(0).get_name().c_str()); }    else { SetWindowText(hwnd_cmd, _T("---")); }    Button_SetCheck(hwnd_rb_sndonce, BST_UNCHECKED);    Button_SetCheck(hwnd_rb_sndrepeat, BST_UNCHECKED);    Button_SetCheck(hwnd_rb_sndhold, BST_UNCHECKED);    Button_SetCheck(hwnd_rb_classuse, BST_UNCHECKED);    Button_SetCheck(hwnd_rb_classavoid, BST_UNCHECKED);    if (act_.get_send_type() == ACT_SEND_HOLD)    { Button_SetCheck(hwnd_rb_sndhold, BST_CHECKED); }    else if (act_.get_send_type() == ACT_SEND_REPEAT)    { Button_SetCheck(hwnd_rb_sndrepeat, BST_CHECKED); }    else // SEND_ONCE or other (default)    { Button_SetCheck(hwnd_rb_sndonce, BST_CHECKED); }    if (act_.is_class_enabled())    { Button_SetCheck(hwnd_rb_classuse, BST_CHECKED); }    else { Button_SetCheck(hwnd_rb_classavoid, BST_CHECKED); }}
开发者ID:szk,项目名称:Ki2Key,代码行数:26,


示例4: MainBoxDisplay

void MainBoxDisplay(){	LoadConf();	// Adjust window position?	// We held off setting the name until now... so description would show.	SetDlgItemText(mainboxwindow, IDC_0202, conf.isoname);	if (conf.startconfigure == 0)	{		Button_SetCheck(GetDlgItem(mainboxwindow, IDC_0209), BST_UNCHECKED);	}	else	{		Button_SetCheck(GetDlgItem(mainboxwindow, IDC_0209), BST_CHECKED);	} // ENDIF- Do we need to uncheck this box?	if (conf.restartconfigure == 0)	{		Button_SetCheck(GetDlgItem(mainboxwindow, IDC_0210), BST_UNCHECKED);	}	else	{		Button_SetCheck(GetDlgItem(mainboxwindow, IDC_0210), BST_CHECKED);	} // ENDIF- Do we need to uncheck this box?	// First Time - Show the window	ShowWindow(mainboxwindow, SW_SHOWNORMAL);} // END MainBoxDisplay()
开发者ID:madnessw,项目名称:thesnow,代码行数:25,


示例5: InitInstance

/*!	インスタンス ハンドルを保存して、メイン ウィンドウを作成します。		この
C++ Buttons_GetStatus函数代码示例
C++ Button函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。