microsoftxiao

记忆 流逝

导航

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

2006年10月4日 #

GDIPlus抛物线渐变

摘要: const cpxn = -400;int cpx = cpxn; int Render(){ if(i>100){ i = 0; InvalidateRect(hWnd,&rect,true); } if(cpx > 600){ cpx = cpxn; } //InvalidateRect(hWnd,&rect,true); Graphics graphics(... 阅读全文

posted @ 2006-10-04 10:41 龙巢NET刀 阅读(6548) 评论(7) 推荐(0)

GDIPlus进度条

摘要: 包含gdiplus头#include using namespace Gdiplus;引用lib #pragma comment(lib,"gdiplus.lib")为了使用GDI要在 WinMain里 初始化设置 GDIint WINAPI WinMain(){ GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplu... 阅读全文

posted @ 2006-10-04 09:45 龙巢NET刀 阅读(358) 评论(0) 推荐(0)

2006年10月3日 #

画圆GDI

摘要: int x = 200;int y = 200;int L = 50; int DrawEllipse(int x,int y,int width,int height){ Arc(hdc,x,y,x+width,y+height,x/2,y,x/2,y); return 0;} //LineTo(hdc,1024,690) - 屏幕宽高int Render(){ x = rand()%... 阅读全文

posted @ 2006-10-03 20:05 龙巢NET刀 阅读(666) 评论(2) 推荐(0)

疯狂画线GDI

摘要: HPEN hPen = NULL;HBRUSH hBrh = NULL; HDC hdc = NULL;RECT rect;int i = 0;//初始化画笔画刷等int InitGDI(){ hdc = GetDC(hWnd); hPen = CreatePen(PS_SOLID,2,RGB(255,0,0)); SelectObject(hdc,hPen); GetWindowRect... 阅读全文

posted @ 2006-10-03 14:39 龙巢NET刀 阅读(706) 评论(0) 推荐(0)

2006年9月30日 #

[转]VC++中数据类型转换

摘要: [转] VC++中有关数据类型转换 关键词: 类型转换 这些是直接把别人的总结拿过来的,不要介意呀 本人并未对所有方法都做测试,仅仅是为了给大家一个参考。 读者层次:初学int i = 100;long l = 2001;float f=300.2;double d=12345.119;char username... 阅读全文

posted @ 2006-09-30 21:40 龙巢NET刀 阅读(1004) 评论(0) 推荐(0)

还是WinGUI Win32 WinMain中嵌如控制台

摘要: #include #include //-------------//函数名: StdPipe//目的: 在WinMain中嵌入窗口//-------------int StdConsole(){ AllocConsole(); hIn = GetStdHandle(STD_INPUT_HANDLE); hOut = GetStdHandle(STD_OUTPUT_HANDLE); h... 阅读全文

posted @ 2006-09-30 09:21 龙巢NET刀 阅读(547) 评论(0) 推荐(0)

还是在WinMain中嵌入Console

摘要: // UnInCmd.cpp : 定义应用程序的入口点。// #include "stdafx.h"#include "UnInCmd.h" #include #include #include #include using namespace std; #define MAX_LOADSTRING 100 // 全局变量:HINSTANCE hInst; // 当前实例TCHAR ... 阅读全文

posted @ 2006-09-30 09:02 龙巢NET刀 阅读(503) 评论(0) 推荐(0)

GUI中嵌入Console

摘要: GUI Win32 WiMain 窗口中半嵌入Console 阅读全文

posted @ 2006-09-30 08:56 龙巢NET刀 阅读(536) 评论(0) 推荐(0)

2006年9月29日 #

ServerLinux下基础

摘要: 没有使用任何异步I/O模型。 阅读全文

posted @ 2006-09-29 23:16 龙巢NET刀 阅读(187) 评论(0) 推荐(0)

2006年9月5日 #

超级简单的引导扇区

摘要: 写个超级简单的似引导又引导的BootSector. microsoftxiao@163.com 首先说些题外话,你是一个对操作系统感兴趣的程序员吗?你编程吗?你是大学生吗?如果你是软件开发人员,你利用业余时间努力发展一个开源项目吗? 我先回答下,我对操作系统有浓厚的兴趣,我编程,我是过大学生,如今已不是,我不从事软件开发,但从事游戏开发,我业余有个业余项目,但是似乎发... 阅读全文

posted @ 2006-09-05 10:04 龙巢NET刀 阅读(566) 评论(0) 推荐(0)

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