- 博客(8)
- 收藏
- 关注
原创 在对话框程序中创建并且加载菜单资源
步骤:一。利用AppWizard建立一个对话框程序二。建立菜单资源,比如生成id为IDR_MENU1三。在对话框类文件中的OnInitDialog()函数中加入如下代码CMenu menu; menu.LoadMenu(IDR_MENU1); CDialog::SetMenu(&menu); CDialog::DrawMenuBar();四。编译成功!
2006-02-26 23:11:00 1726
原创 Use of Common Dialogs (offered by the operating system)
void CDialogsDlg::OnButton2() {// exaple of CFileDialog // TODO: Add your control notification handler code here CFileDialog fd(TRUE); //If the argument is FALSE, it means to open a File Save Dialog,
2006-02-26 20:49:00 637
原创 Study Note of use of MessageBox() and its surrounding information(MFC)
The MessageBox function has three arguments,first points to the information shown to the user, second one relates to the title(optional), last one specifies the types of buttons and icon on the di
2006-02-26 20:31:00 719
原创 Using the HotKey to wake up your application like KingSoft Dictionary does(MFC)
//RegisterHotKey is the function installing specific hotkeys to the Operating System.//OnHotKey, a user-defined function used to act when message WM_HOTKEY arrives//ON_MESSAGE(WM_HOTKEY,OnHotKey)
2006-02-26 16:38:00 894
原创 A Sample for WinExec() in MFC
Running Another ApplicationThe last major piece of functionality to be implemented in your application is for the set of controls for running another program. If you remember, you added the names of
2006-02-26 16:19:00 1579
原创 J2EE,你这个怪兽!
接触J2EE已经快2个月了,借阅了不少关于它的书和一些资料,到目前为止只是写了一个EJB的实例,而且还有很多概念思想不清楚。 J2EE,这个怪兽一样得东西真是折腾人啊,基本上我还没有入门啊,所以非常郁闷。那些SessionBean, EntityBean还有各种各样的组件以及他们之间的关系,如何在分布式计算环境中运行等等问题搞得我真的很痛苦,以前学啥都没有学这个东
2006-02-26 00:58:00 945
转载 获得其他网页内容代码
常用函数1、输入url目标网页地址,返回值getHTTPPage是目标网页的html代码function getHTTPPage(url)dim Httpset Http=server.createobject("MSXML2.XMLHTTP")Http.open "GET",url,falseHttp.send()if Http.readystateexit functionend ifge
2006-02-25 13:48:00 1023
原创 开学两天了
开学两天了,这个学期任务可真是重啊。 首先是课程比较紧,主要是因为太多专业课程,而且都是比较重要的,所以应该多花点时间解决这些问题。 英语也是这个学期的重点,上个学期确实是最失败的一个学期,虽然期末成绩从分数上看不算低,但是发现同学们普遍都比较高分,所以还是算失败。六级留到了这个学期考,故必须多多努力。 今天第一次上了英语课,是由Micheal教我们的,感觉他
2006-02-21 23:21:00 870
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人