随笔分类 -  开软软件及文档

上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
开软软件及文档
摘要:This class is a simple owner-draw CButton class that allows you to play animation files (AVI's) within the button. This class can be used like any other owner drawn control - simply include the heade... 阅读全文
posted @ 2008-08-11 09:24 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(262) 评论(0) 推荐(0)
摘要:Introduction I was actually experimenting with different brush option to create a glassy orb but it does not work .. But i still like the effect even though it wasnt really what i want .. So i turn t... 阅读全文
posted @ 2008-08-11 09:23 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(255) 评论(0) 推荐(0)
摘要:Introduction SBButton control is a button control from a set of controls (Sysbytes Controls) I'm developing to use with an application I'm writing. This button control can be customized in almost any... 阅读全文
posted @ 2008-08-11 09:21 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(333) 评论(0) 推荐(0)
摘要:Introduction ThemeButton is a CButton derived class. It is a very simple graphical button, and has special bitmaps representing five button states: normal, hot, pressed, disabled, and default. Button... 阅读全文
posted @ 2008-08-11 09:18 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(331) 评论(0) 推荐(0)
摘要:Contents Introduction Background Owner-draw DRAWITEMSTRUCT Inside WndProc() The function to handle WM_DRAWITEM Additional information History Introduction Although ... 阅读全文
posted @ 2008-08-11 09:11 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(561) 评论(0) 推荐(0)
摘要:Introduction I wanted to draw a button which is transparent to its back ground image and hence had gone through several articles about button styles - transparent buttons. They were all very tedious ... 阅读全文
posted @ 2008-08-11 09:10 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(393) 评论(0) 推荐(0)
摘要:Introduction The idea was to have a small piece of code which makes it easy to create a button with an icon on it. I saw a lot of great code, but it was not exactly what I want. So I decided to creat... 阅读全文
posted @ 2008-08-11 09:09 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(390) 评论(0) 推荐(0)
摘要:Introduction When I was writing an application for an Arabic customer in C++, I noticed that the buttons/labels in my CDialog did not understand my Arabic text. This class allows you to write any Uni... 阅读全文
posted @ 2008-08-11 09:07 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(293) 评论(0) 推荐(0)
摘要:Introduction *I'm not good at English, but if you can understand my story, isn't that enough? :) When I made this application, especially as dialog based, a lot of buttons were used. Buttons are ve... 阅读全文
posted @ 2008-08-11 09:06 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(431) 评论(0) 推荐(0)
摘要:Introduction This article shows the use of a Push button with a drop down menu, similar to the one found in the Office 2000 suite. The code is encapsulated in a MFC class. The class itself is derived... 阅读全文
posted @ 2008-08-11 09:02 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(467) 评论(0) 推荐(0)
摘要:Introduction The idea was simple, I needed to use simple hyperlink buttons in my application. I searched for them on the net and could not find any, so I decided to write down my own class of Hyperli... 阅读全文
posted @ 2008-08-11 09:01 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(239) 评论(0) 推荐(0)
摘要:Introduction This tutorial could well be the simplest windows program you could ever write. All you need to understand this tutorial is the basics of windows messaging. This tutorial is about the CB... 阅读全文
posted @ 2008-08-11 08:58 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(209) 评论(0) 推荐(0)
摘要:1.Introduction This article presents the construction of a templated ASP.NET control, working as a PleaseWait button. Using C# with Asp.Net 2.0, you will see how to create a templated control and add ... 阅读全文
posted @ 2008-08-11 08:57 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(439) 评论(0) 推荐(0)
摘要:Introduction This article's main purpose is to show another aspect of BEGIN_MESSAGE_MAP(). In MFC, whenever there is a need to make a button control dynamic, we often get hung up on the point of defi... 阅读全文
posted @ 2008-08-11 08:55 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(270) 评论(0) 推荐(0)
摘要:若一个口袋中放有12个球,其中有3个红的。3个白的和6个黒的,问从中任取8个共有多少种不同的颜色搭配? *问题分析与算法设计 设任取的红球个数为i,白球个数为j,则黒球个数为8-i-j,根据题意红球和白球个数的取值范围是0~3,在红球和白球个数确定的条件下,黒球个数取值应为8-i-j int main() { int i,j,count=0; printf(" RED BALL WHITE BA... 阅读全文
posted @ 2008-08-04 10:35 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(191) 评论(0) 推荐(0)
摘要:求任意两个正整数的最大公约数和(GCD)和最小公倍数(LCM) *问题分析与算法设计 手工方式求两个正整数的蝚大公约数的方法是用辗转相除法,在程序中可以模拟这种方式。 *程序说明与注释 #include int main() { int a,b,num1,num2,temp; printf("Input a & b:"); scanf("%d%d",&num1,&num2); if(num1>... 阅读全文
posted @ 2008-08-04 10:34 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(387) 评论(0) 推荐(0)
摘要:马克思手稿中有一道趣味数学问题:有30个人,其中有男人、女人和小孩,在一家饭馆吃饭花了50先令;每个男人花3先令,每个女人花2先令,每个小孩花1先令;问男人、女人和小孩各有几人? *问题分析与算法设计 设x,y,z分别代表男人、女人和小孩。按题目的要求,可得到下面的方程: x+y+z=30 (1) 3x+2y+z=50 (2) 用方程程序求此不定方程的非负整数解,可先通过(2)-(1)式得: 2... 阅读全文
posted @ 2008-08-04 10:34 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(346) 评论(0) 推荐(0)
摘要:比较两个分数的大小。 *问题分析与算法设计 人工方式下比较分数大小最常用的方法是:进行分数的通分后比较分子的大小。可以编程模拟手式方式。 *程序说明与注释 #include int zxgb(int a,int b); int main() { int i,j,k,l,m,n; printf("Input two FENSHU:\n"); scanf("%d/%d,%d/%d",&i,&j,&... 阅读全文
posted @ 2008-08-04 10:33 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(321) 评论(0) 推荐(0)
摘要:求这样的四个自然数p,q,r,s(p int main() { int p,q,r,s,count=0; printf("The 4 fractions which sum is equal 1 are:\n"); for(p=2;p=r) printf("[%2d] 1/%d+1/%d+1/%d+1/%d=1\n",++count,p,q,r,s); /*输出结果*/ } } *运行结果 ... 阅读全文
posted @ 2008-08-04 10:33 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(406) 评论(0) 推荐(0)
摘要:按递增顺序依次列出所有分母为40,分子小于40的最简分数。 *问题分析与算法设计 对分子采用穷举法,利用最大公约数的方法,判断分子与40是否构成真分数。 *程序说明与注释 #include int main() { int i,num1,num2,temp; printf("The fraction serials with demominator 40 is:\n"); for(i=1;i<... 阅读全文
posted @ 2008-08-04 10:32 广陵散仙(www.cnblogs.com/junzhongxu/) 阅读(306) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页