|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 16 楼』:
最新源代码,支持TreeView、ListView
使用 LLM 解释/回答一下
最新源代码(附件1)包含TreeView、ListView; ListView支持标题栏平移和缩放,Scrollbar支持鼠标滚轮驱动。 可在Windows的DOS窗口中全屏方式下运行。
请下载后,用Borland C/C++ 3.1编译其中的工程文件:GUI.DSK, GUI.PRJ。
Last edited by taowentao on 2007-7-14 at 03:43 AM ]
The latest source code (Attachment 1) contains TreeView and ListView; the ListView supports title bar panning and zooming, and the Scrollbar supports mouse wheel driving. It can run in full-screen mode in the DOS window of Windows.
Please download it and compile the project files in it: GUI.DSK, GUI.PRJ with Borland C/C++ 3.1.
Last edited by taowentao on 2007-7-14 at 03:43 AM ]
附件
1: gui截图.JPG (2007-7-14 03:29, 72.67 KiB,下载次数: 5)
|

来自山东,现居沈阳 |
|
2007-7-14 02:49 |
|
|
cicnx
新手上路

积分 6
发帖 3
注册 2007-7-5
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
我还以为有全部代码呢..... 关键的代码没有相当于没有用..
I thought there were all the codes..... The key code is missing, which is equivalent to being useless.
|
|
2007-8-3 00:35 |
|
|
defrag
中级用户
   痴迷DOS者
积分 456
发帖 570
注册 2004-10-9
状态 离线
|
『第 18 楼』:
实际上现在用实模式也可以做多窗口,多任务
使用 LLM 解释/回答一下
1024*768*256做多窗口4MB的显示内存已经足够,屏幕只用前768K
用交换内存(INT15H)可以实现多任务。
1024*768*256 With 4MB display memory, the screen only uses the first 768K. The swap memory (INT15H) can be used to achieve multitasking.
|

DOS不是万能的,没有DOS是万万不能的
自古系统谁无死?留取胆清照汗青!uploadImages/20035317345478982.png |
|
2007-8-3 13:31 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
|
2007-8-14 22:32 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 20 楼』:
Windows XP 标准9号宋体
使用 LLM 解释/回答一下
汉字字库改为Windows XP 标准9号宋体。
注意DOS不可重入,在GUI任务之外调用DOS功能之前应加GUI锁,调用之后应解锁,且调用DOS功能的任务优先级应低于16(因为已在一个优先级高于16的任务中接管了所有的DOS硬件中断),而DOS功能调用仍基于忙等待机制:
void _cdecl_ GUILock(void); /* 锁定GUI,保护共享数据安全 */
void _cdecl_ GUIUnLock(void); /* 解锁GUI,加解锁应成对出现 */
此外,在此演示中还需矢量字库文件:KTDOT.PS,请到“矢量汉字显示实例——happybasic”( http://www.cn-dos.net/forum/viewthread.php?tid=27441&fpage=3) 中下载此文件。
Last edited by taowentao on 2007-8-24 at 09:09 PM ]
Change the Chinese character font to the standard 9-point Song typeface of Windows XP.
Note that DOS is not reentrant. Before calling DOS functions outside of GUI tasks, a GUI lock should be added, and after calling, it should be unlocked. Also, the task priority of the task calling DOS functions should be lower than 16 (because all DOS hardware interrupts have been taken over in a task with a priority higher than 16). However, DOS function calls are still based on the busy waiting mechanism:
void _cdecl_ GUILock(void); /* Lock the GUI to protect the security of shared data */
void _cdecl_ GUIUnLock(void); /* Unlock the GUI, locks and unlocks should appear in pairs */
In addition, the vector font file: KTDOT.PS is also required in this demonstration. Please download this file from "Vector Chinese Character Display Example - happybasic" ( http://www.cn-dos.net/forum/viewthread.php?tid=27441&fpage=3).
Last edited by taowentao on 2007-8-24 at 09:09 PM ]
附件
1: C_lib.rar (2007-8-23 20:58, 243.62 KiB,下载次数: 346)
附件
2: demo_font12.JPG (2007-8-23 20:59, 67.85 KiB,下载次数: 17)
|

来自山东,现居沈阳 |
|
2007-8-23 20:57 |
|
|
haohaook0099
新手上路

积分 2
发帖 1
注册 2007-9-1
状态 离线
|
|
2007-9-1 11:47 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
|
2007-9-22 13:30 |
|
|
ldljlzw
初级用户
 
积分 127
发帖 12
注册 2003-6-20
状态 离线
|
|
2007-9-27 11:53 |
|
|
ldljlzw
初级用户
 
积分 127
发帖 12
注册 2003-6-20
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
什么开放源代码,只不过是几个LIB文件!!!
What open source code, it's just a few LIB files!!!
|
|
2007-9-28 11:07 |
|
|
jxfengzi
新手上路

积分 8
发帖 4
注册 2007-5-11
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
是lz写的么?
写了多久?
确实很不错,比我写的强多了。
Is this written by lz? How long did it take to write? It's really very good, much better than what I wrote.
|
|
2007-10-17 16:49 |
|
|
turui
新手上路

积分 10
发帖 5
注册 2006-9-7
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
汗。。。。
看了演示觉得好漂亮哦
赶紧下源码来学习
结果。。。。
是个LIB,跟没有一样
楼主把代码放出来
否则没大意义哦,这帖就仅成了观赏帖了
Sweat......
I think it's so beautiful after watching the demo
Hurry up to download the source code to study
Result......
It's a LIB, just like nothing
The landlord release the code
Otherwise it's not of great significance, this post will only become a viewing post
|
|
2007-12-14 16:43 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
Originally posted by turui at 2007-12-14 04:43 PM:
汗。。。。
看了演示觉得好漂亮哦
赶紧下源码来学习
结果。。。。
是个LIB,跟没有一样
楼主把代码放出来
否则没大意义哦,这帖就仅成了观赏帖了
源代码在WIN目录下面,自己找吧...
Originally posted by turui at 2007-12-14 04:43 PM:
Sweat...
After watching the demo, I think it's so beautiful
Hurry up to download the source code to study
Result...
It's a LIB, just like nothing
The landlord releases the code
Otherwise, this post will only become an ornamental post
The source code is in the WIN directory, find it yourself...
|

来自山东,现居沈阳 |
|
2007-12-14 19:53 |
|
|
turui
新手上路

积分 10
发帖 5
注册 2006-9-7
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
Originally posted by taowentao at 2007-12-14 19:53:
源代码在WIN目录下面,自己找吧...
主要是想学习一下Engine部分的代码可这一部分是Lib看不到哦
如果没这部分代码没办法理解您的思想哦
Originally posted by taowentao at 2007-12-14 19:53:
The source code is under the WIN directory, find it yourself...
Mainly want to learn the code of the Engine part, but this part is not visible in the Lib...
If there is no this part of the code, it is impossible to understand your idea...
|
|
2007-12-16 17:21 |
|
|
turui
新手上路

积分 10
发帖 5
注册 2006-9-7
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
楼主的代码编码风格不错哦,代码好清晰,Engine部分代码放出来就更好拉
The code style of the landlord is quite good, and the code is very clear. It would be even better if the Engine part of the code is released.
|
|
2007-12-17 10:48 |
|
|
shiyouc
新手上路

积分 2
发帖 1
注册 2006-2-16
状态 离线
|
|
2008-6-27 12:04 |
|