摘要:
自定义WM_NOTIFY消息 习惯了用自定义用户消息进行各种状态的通知,特别是子窗口与父窗口之间的交互。但ON_MESSAGE没有控件ID的限制,如果有多个子窗口发送同一个消息给父窗口时,父窗口就不知道哪个窗口发的(当然可以用参数进行约定)。 如何解决这个问题? 有几种思路:1.重写ON_MESSAGE宏,增加ID的限制;2.模拟按钮单击消息;3.自定义WM_NOTIFY消息。基于这些思路都不能修改MFC底层的代码。 用调试的方式查看MFC的实现代码,发现重写ON_MESSAGE宏不能实现,具有ID判断的只在WM_NOTIFY和WM_COMMAND两个消息中... 阅读全文
posted @ 2013-10-30 22:16
pangbangb
阅读(742)
评论(0)
推荐(0)
摘要:
参照:http://www.cnblogs.com/hcbin/archive/2010/03/26/1696803.html改动地方value的值可以用报表的字段进行编辑。 效果: 阅读全文
posted @ 2013-10-30 22:12
pangbangb
阅读(195)
评论(0)
推荐(0)
摘要:
import java.util.LinkedList;import java.util.Scanner;import java.util.Stack;//structure of binary treeclass BiTree { BiTree lchild; BiTree rchild; String data;}public class BiTreeTest { static Scanner scanner = new Scanner(System.in); // test case: a b c # # d e # g # # f # # # static BiTree createB 阅读全文
posted @ 2013-10-30 22:11
pangbangb
阅读(315)
评论(1)
推荐(0)
摘要:
Bootstrap,来自 Twitter,是基于 HTML、CSS、JAVASCRIPT 的简介灵活的流行前段框架及交互组件集。内容列表Bootstrap 教程 Bootstrap 教程 Bootstrap 简介 Bootstrap CSS 概览 Bootstrap 网格系统 Bootstrap 布局 Bootstrap 响应式设计 Bootstrap 排版 Bootstrap 表格 Bootstrap 表单 Bootstrap 图标 Bootstrap 导航 Bootstrap 导航条 Bootstrap ... 阅读全文
posted @ 2013-10-30 22:10
pangbangb
阅读(1130)
评论(0)
推荐(3)
摘要:
最长上升子序列的O(n*log(n))算法。不上升子序列的个数等于最长上升子序列的长度。#include#include#include#includeusing namespace std;#define INF 9999999int dp[10001];int num[10001];int num2[10001];int tops;int dos(int x){ if(tops==0) { tops++; return 0; } if(xdp[tops-1]) { tops++; return tops-... 阅读全文
posted @ 2013-10-30 22:06
pangbangb
阅读(252)
评论(0)
推荐(0)
摘要:
题意:对给定前缀(长度不超过40),找到一个最小的n,使得Fibonacci(n)前缀与给定前缀相同,如果在[0,99999]内找不到解,输出-1。思路:用高精度加法计算斐波那契数列,因为给定前缀长度不超过40,所以高精度计算时每次只需保留最高60位,每次将得到的值插入到字典树中,使得树上每个节点只保留最小的n值。查询输出字典树结点的值。#include#include#include#define MAXNLEN 80#define LEN 60using namespace std;struct bign{ int d[MAXNLEN],len;};void add(bign & 阅读全文
posted @ 2013-10-30 22:05
pangbangb
阅读(194)
评论(0)
推荐(0)
摘要:
Q:How to color the text in the gridTry:http://dev.sencha.com/playpen/docs/output/Ext.grid.TableGrid.html http://www.iteye.com/problems/19221 A:http://www.w3school.com.cn/tiy/t.asp?f=jquery_selector_class Welcome to My HomepageMy name is DonaldI live in DuckburgMy best friend is MickeyWho is your f.. 阅读全文
posted @ 2013-10-30 22:04
pangbangb
阅读(290)
评论(0)
推荐(0)
摘要:
package com.njupt.acm;import java.math.BigInteger;import java.util.Scanner;public class POJ_1220_1 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int t = scanner.nextInt(); while(t > 0){ BigInteger ba1 = scanner.nextBigInteger(); BigInteger ba2 = scan... 阅读全文
posted @ 2013-10-30 22:03
pangbangb
阅读(231)
评论(0)
推荐(0)
摘要:
开始时间 long startTime = System.currentTimeMillis(); 程序业务逻辑代码() 结束时间 long endTime = System.currentTimeMillis(); System.out.println("time: " + (endTime - startTime) / 1000 + " s"); 阅读全文
posted @ 2013-10-30 21:59
pangbangb
阅读(767)
评论(0)
推荐(0)
摘要:
Tomcat 启动报错:java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoa 阅读全文
posted @ 2013-10-30 21:58
pangbangb
阅读(1348)
评论(0)
推荐(0)