当我们右键点击listview控件时,可以得到选择的项的各个文本内容。现在我们要求只获取右键点击时的单元格的文本内容。方法如下:1、定义全局的鼠标状态Point m_MBRpt;//鼠标右键点击时Point2、处理鼠标按下时在listView的消息private void listView1_Mou...
分类:
其他好文 时间:
2014-06-27 20:24:56
阅读次数:
673
直接上代码。 Point brp = SystemParameters.WorkArea.BottomRight;//当前桌面右下角的位置
分类:
其他好文 时间:
2014-06-27 19:35:20
阅读次数:
201
温馨提示 首先要安装postfix 或者 sendmail 等邮件服务器1.Apache#!/bin/bash#apache.shnc -w2 localhost 80 if[ $? -ne 0 ]then echo "apache is down,please check" | mail us.....
分类:
其他好文 时间:
2014-06-27 15:03:59
阅读次数:
256
create table test(id int IDENTITY,amount int check(amount >=1000 and amount<=5000));SELECT * FROM dbo.test/*下面这个语句不检查约束:*/SET IDENTITY_INSERT dbo.test...
分类:
数据库 时间:
2014-06-26 19:25:27
阅读次数:
370
一直想自己写个游戏玩玩,好像很厉害的样子,终于今天下定决心写了个最经典的休闲的小游戏——贪吃蛇,当然也有借鉴别人的程序,但是整个代码都是和别人不一样的,直接上代码吧:
#include
#include
#include
#include
using namespace std;
#define ROW 22
#define COL 22
struct Point
{
char ch...
分类:
其他好文 时间:
2014-06-26 13:24:30
阅读次数:
196
/**
* Created by W.J.Chang on 2014/6/25.
*/
;(function($) {
var methods= {
check: function() {
return this.each(function() { this.checked = true; });
}
};
$...
分类:
Web程序 时间:
2014-06-26 11:33:43
阅读次数:
368
//通用封装好的js:var map = new BMap.Map("container"); //建树Map实例var point = new BMap.Point(103.976032, 33.845509); // 建树点坐标map.centerAndZoom(point, 6); // 初始...
分类:
数据库 时间:
2014-06-26 11:23:33
阅读次数:
606
??
oracle 10g/11g 命令对比,日志目录对比
oracle 11g 中不再建议使用的命令
Deprecated Command
Replacement Commands
crs_stat
crsctl check cluster -all...
分类:
数据库 时间:
2014-06-26 07:42:07
阅读次数:
530
POJ 2151 Check the difficulty of problems (动态规划-概率DP)
题目大意:
有 M 道题目 T 支队伍,N表示 最好 的队 至少要做出N题 ,紧接下来T行M列,表示某队做出某题 的概率为p ,问你每支队至少做出1题,最好的队至少做出N题的概率是多少?
解题思路:
一题动态规划的题, 既然最好的队至少做出N题,那么用二维记录,DP [t][f] 记录还剩 t 支队及是否出现超过N题的事件的概率。如果当前这支队伍做出超过N题,那么f置为1,否则还是f。弹了两遍,...
分类:
其他好文 时间:
2014-06-26 07:11:03
阅读次数:
190
// ConsoleApplication3_6_23.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
using namespace std;
using namespace cv;
Mat src,dst,gray;
int pro_typ...
分类:
其他好文 时间:
2014-06-26 06:46:25
阅读次数:
315