code_focus

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年4月5日

摘要: UINT GetCheckedRadioButton(HWND hwnd, UINT nIDFirstButton, int nIDLastButton){ for (UINT nID = nIDFirstButton; nID <= nIDLastButton; nID++) { HWND hwnd1 = GetDlgItem(hwnd, nID); int checkState = Button_GetCheck(hwnd1); if (BST_CHECKED == checkState) return nID;... 阅读全文
posted @ 2014-04-05 21:28 code_focus 阅读(410) 评论(0) 推荐(0) 编辑

摘要: 最近在用winForm写一个界面,在将一个TCHAR类型的数组转换成int 类型时,我是这样写的GetDlgItemText(hwnd, IDC_EDIT2, key, sizeof(key)); //DES加密算法 // MessageBox(hwnd, key, TEXT("hello"), MB_OK); int keys=atoi(key);编译报... 阅读全文
posted @ 2014-04-05 21:10 code_focus 阅读(1928) 评论(0) 推荐(0) 编辑