JayceLi  

2010年11月23日

摘要: 此要写在setNegativeButton或setPositiveButton等setButton的OnClickListener的OnClick里,且每个按钮都要单独写一次,因为对mDialog的field的改变相对于此对象来说是全局的try{Field field = mDialog.getClass().getSuperclass().getDeclaredField("mShowing")... 阅读全文
posted @ 2010-11-23 16:11 JayceLi 阅读(451) 评论(0) 推荐(0)
 
摘要: 在自己的TreeView中加上OnClick的函数void CTree1::OnClick(NMHDR* pNMHDR, LRESULT* pResult) {// TODO: Add your control notification handler code hereUINT nflags;CPoint point;//这里是获取鼠标当前点击子项的方法GetCursorPos(&point);... 阅读全文
posted @ 2010-11-23 13:24 JayceLi 阅读(1146) 评论(0) 推荐(0)
 
摘要: //SampleView可以是各种View或ViewGroupView SampleView;SampleView.setBackgroundResource(android.R.drawable.list_selector_background);SampleView.setFocusableInTouchMode(true);SampleView.requestFocus();//想设置Vie... 阅读全文
posted @ 2010-11-23 10:40 JayceLi 阅读(338) 评论(0) 推荐(0)
 
摘要: /*开发环境准备,如在VC6.0中将目录C:\JDK\include和C:\JDK\include\win32加入到开发环境的Include Files目录中,同时将C:\JDK\lib目录添加到开发环境的Library Files目录中。*///Sample.cpp#include "windows.h" #include "jni.h" #include #include usin... 阅读全文
posted @ 2010-11-23 10:28 JayceLi 阅读(264) 评论(0) 推荐(0)