??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品一本,日产精品久久久久久久性色,98精品国产自产在线观看http://www.aygfsteel.com/doneykoo/DKzone- Ouditian Technologyzh-cnFri, 20 Jun 2025 00:51:45 GMTFri, 20 Jun 2025 00:51:45 GMT60FireFox 5 Addonshttp://www.aygfsteel.com/doneykoo/archive/2011/07/19/354632.htmlDoNeYDoNeYTue, 19 Jul 2011 07:44:00 GMThttp://www.aygfsteel.com/doneykoo/archive/2011/07/19/354632.htmlhttp://www.aygfsteel.com/doneykoo/comments/354632.htmlhttp://www.aygfsteel.com/doneykoo/archive/2011/07/19/354632.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/354632.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/354632.html
https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/
https://addons.mozilla.org/en-US/firefox/addon/firegestures/
    
http://code.google.com/p/gmarks/downloads/detail?name=GMarks-1.0.3.xpi&can=2&q=
http://www.firefox.net.cn/forum/viewtopic.php?t=29894


DoNeY 2011-07-19 15:44 发表评论
]]>
[fw] as3优化ȝhttp://www.aygfsteel.com/doneykoo/archive/2011/06/25/352995.htmlDoNeYDoNeYSat, 25 Jun 2011 05:03:00 GMThttp://www.aygfsteel.com/doneykoo/archive/2011/06/25/352995.htmlhttp://www.aygfsteel.com/doneykoo/comments/352995.htmlhttp://www.aygfsteel.com/doneykoo/archive/2011/06/25/352995.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/352995.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/352995.html as3优化ȝ
有意思的一条:

10) L局部变?thisҎ同withҎ比较)
局部变量的定位Ҏ很多。我们发现用with比用this更加有优势!


DoNeY 2011-06-25 13:03 发表评论
]]>
20110318http://www.aygfsteel.com/doneykoo/archive/2011/03/18/346538.htmlDoNeYDoNeYFri, 18 Mar 2011 07:06:00 GMThttp://www.aygfsteel.com/doneykoo/archive/2011/03/18/346538.htmlhttp://www.aygfsteel.com/doneykoo/comments/346538.htmlhttp://www.aygfsteel.com/doneykoo/archive/2011/03/18/346538.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/346538.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/346538.html M各方面来说还挺满?br />


DoNeY 2011-03-18 15:06 发表评论
]]>
WowDLLChecker (c) Ouditian [rev.20100921] ver 1.0.3.22http://www.aygfsteel.com/doneykoo/archive/2010/02/02/311647.htmlDoNeYDoNeYTue, 02 Feb 2010 03:25:00 GMThttp://www.aygfsteel.com/doneykoo/archive/2010/02/02/311647.htmlhttp://www.aygfsteel.com/doneykoo/comments/311647.htmlhttp://www.aygfsteel.com/doneykoo/archive/2010/02/02/311647.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/311647.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/311647.html最q不wower包括我自己都到了wow目录下出现危险dll文g而可能遭木马H取资料的情况,
做了个小工具Q与大家分nQ欢q交意见徏议?nbsp;  

[::艾泽拉斯国家地理 BBS.NGACN.CC::]

在对于那些dll文g的最后修Ҏ间与标准版本最后修Ҏ间比较,我不太清楚大家手头的dll文g如何Q? 希望大家能把使用中出现的情况反馈l我Q在此感谢?br />
在您wow前、wow时打开WowDLLCheckerQ它帮助您扑ևq保持检扫描:
wow.exe和目录下DLL{?span class="indigo">被修改过的文?/span>?span class="indigo">危险的多余DLL文g、以?span class="indigo">~失的文?/span>?br /> 不用担心有dll文g属性是只读或隐藏或pȝQ工h会扫描到的?br /> 同时qؓ你检查是否有wow,laucher的映像劫持?br />
使用Q放|到你的wow文g夹ƈ执行?br />
PS. 此程序无M对网l的讉K?
q个链接应该可以?nbsp;     
猛击此处下蝲→ [ WowDLLChecker_20100921_1.0.3.22.rar] 59.3   KB
   

~少.Net库的童鞋请下?span class="silver">[ http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=zh-cn Microsoft .NET Framework Version 2.0 lg?x86) ]



== Log ==
20091103 1.0.2.0 new features:  MD5 check;
                                Tool self check result;
                                Wow.exe and Launcher.exe check;
                                Colorized rows to indicate file status.
20091104 1.0.2.1 new features:  Changed last modified time judgement;
                                Configuration of keep checking;
                                Fixed language setting;
                                Minimized tray has a balloon tooltip now.
20091113 1.0.2.2 new features:  Disabled the judgement for last modified time;
                                Fixed the colorize process.
20091114 1.0.2.3 new features:  Looped in repair.exe;
                                Indicates wow client version the tool is based on;
                                Added suggestion message;
                                Adjusted the colorize process.
20091208 1.0.2.4 new features:  Now concerns some DLLs of vc7 env;
                Prepare checking system for multi regions.
20100202 1.0.3.0 new features:  Now supports examination for WOW.TW;
                Supports region selection between: zhCN, zhTW;
                Supports language selection between: simplified Chinese, traditional Chinese, english;
                Auto check your region for first running this app;
                Auto saves/loads your changed settings.
20100915 1.0.3.20 Updated for CWOW WLK.
                  Sorry that in this version, TW info is wrong.
20100916 1.0.3.21 Bug fix.
20100921 1.0.3.22 Enhanced security check with MD5 and Exe Dll FileVersion.
                  Compatible with different versions of msvc dlls.
                  Info of zhCN 3.2.2.12484 added.
                  Info of zhTW 3.3.5.12340 added.




WowDLLChecker.exe
Size: 69645 bytes
File Version: 1.0.3.22
Modified: Tuesday, September 21, 2010, 11:03:05
MD5: 9ADC90F7AA797F19C76EF5AF0D8AD74F
SHA1: EAC9FA7ABA22534D2E9CEEE87C8E37AA281E9CD2
CRC32: 43D7A492



WowDLLChecker_20100921_1.0.3.22.rar
Size: 61572 bytes
Modified: Tuesday, September 21, 2010, 11:05:47
MD5: E15F7C16B908A2BE4FC3E80B9ED1694B
SHA1: 3D736739890938C9AF85A0D4B6914D024613D0CE
CRC32: CA778324




LOG.
--DONE
多余非官Ҏ?#8730;
文g大小比较√
最后修Ҏ间比?#8730;
MD5√
IFEO of wow.exe, launcher.exe√
支持台服√
支持多语a√
自检结?#8730;

--TODO
被加载DLL
 

DoNeY 2010-02-02 11:25 发表评论
]]>
Notes of Learning OpenGL Programming Guide [3]http://www.aygfsteel.com/doneykoo/archive/2010/01/31/311384.htmlDoNeYDoNeYSun, 31 Jan 2010 06:22:00 GMThttp://www.aygfsteel.com/doneykoo/archive/2010/01/31/311384.htmlhttp://www.aygfsteel.com/doneykoo/comments/311384.htmlhttp://www.aygfsteel.com/doneykoo/archive/2010/01/31/311384.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/311384.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/311384.html
  1 // #pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")
  2 
  3 #include "GL\glut.h"
  4 #include <iostream>
  5 
  6 static GLfloat fSpin = 0.0;
  7 static GLfloat fClearBlue = 0.2;
  8 static bool bRotating = false;
  9 
 10 void display(void)
 11 {
 12     // clear
 13     glClear(GL_COLOR_BUFFER_BIT);
 14 
 15     glPushMatrix();
 16     glRotatef(-fSpin, 0.00.01.0);
 17     glColor3f(1.01.01.0);
 18     glRectf(-25.0-25.025.025.0);
 19 
 20     glColor3f(1.00.00.0);
 21 
 22     glBegin(GL_POLYGON);
 23     glVertex3i(-16,    18,    0);
 24     glVertex3i(16,    18,    0);
 25     glVertex3i(16,    10,    0);
 26     glVertex3i(-16,    10,    0);
 27     glEnd();
 28 
 29     glBegin(GL_POLYGON);
 30     glVertex3i(-4,    10,    0);
 31     glVertex3i(4,    10,    0);
 32     glVertex3i(4,    5,    0);
 33     glVertex3i(-4,    5,    0);
 34     glEnd();
 35 
 36     glBegin(GL_POLYGON);
 37     glVertex3i(-20,    5,    0);
 38     glVertex3i(20,    5,    0);
 39     glVertex3i(20,    -3,    0);
 40     glVertex3i(-20,    -3,    0);
 41     glEnd();
 42 
 43     glBegin(GL_POLYGON);
 44     glVertex3i(0,    2,    0);
 45     glVertex3i(18,    -16,0);
 46     glVertex3i(13,    -21,0);
 47     glVertex3i(0,    -8,0);
 48     glEnd();
 49     
 50     glBegin(GL_POLYGON);
 51     glVertex3i(0,    2,    0);
 52     glVertex3i(-18,    -16,0);
 53     glVertex3i(-13,    -21,0);
 54     glVertex3i(0,    -8,0);
 55     glEnd();
 56 
 57     glPopMatrix();
 58 
 59     glutSwapBuffers();
 60 }
 61 
 62 void spinDisplay(void)
 63 {
 64     // change the params for displaying the squre
 65     fSpin += 0.05;
 66     if (fSpin > 360.0) {
 67         fSpin -= 360.0;
 68     }
 69     glutPostRedisplay();    
 70 }
 71 
 72 void reshape(int w, int h)
 73 {
 74     glViewport(00, (GLsizei) w, (GLsizei) h);
 75     glMatrixMode(GL_PROJECTION);
 76     glLoadIdentity();
 77     glOrtho(-50.050.0-50.050.0-1.01.0);
 78     glMatrixMode(GL_MODELVIEW);
 79     glLoadIdentity();
 80 }
 81 
 82 void mouse(int button, int state, int x, int y)
 83 {
 84     switch(button) {
 85         case GLUT_LEFT_BUTTON:
 86             // start or stop the rotating square
 87             if (state == GLUT_DOWN && !bRotating) {
 88                 bRotating = true;
 89                 glutIdleFunc(&spinDisplay);
 90             }
 91             else if (state == GLUT_DOWN && bRotating) {
 92                 bRotating = false;
 93                 glutIdleFunc(NULL);
 94                 if ((GLint)(fSpin+0.5)%90 == 0) {
 95                     fClearBlue = 1.0 - fClearBlue;
 96                     glClearColor(0.00.0, fClearBlue, 0.0);
 97                 }
 98             }
 99             break;
100         case GLUT_RIGHT_BUTTON:
101             break;
102         default:
103             break;
104     }
105 }
106 
107 void init(void)
108 {
109     // select the clearing color
110     glClearColor(0.00.0, fClearBlue, 0.0);
111 
112     glShadeModel(GL_FLAT);
113 }
114 
115 void idle(void)
116 {
117     if (glutGetWindow() == 0) {
118         exit(0);
119     }
120 }
121 
122 /*
123  * Declare display mode, window size, position, 
124  * open a window titled,
125  * call init routines,
126  * register display, reshape, mouse callback function
127  * enter main loop
128  */
129 int main( int argc, char * argv[] )
130 {
131     glutInit(&argc, argv);
132 
133     // GLUT_DOUBLE - double buffer
134     glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
135     glutInitWindowPosition(100100);
136     glutInitWindowSize(400400);
137     glutCreateWindow("DoNeY's first OpenGL app");
138 
139     init();
140 
141     glutDisplayFunc(&display);
142     glutReshapeFunc(&reshape);
143     glutMouseFunc(&mouse);
144     glutIdleFunc(&idle);
145     
146     glutMainLoop();
147     return 0;
148 }
149 





DoNeY 2010-01-31 14:22 发表评论
]]>
sample OpenGL project in VS2008http://www.aygfsteel.com/doneykoo/archive/2010/01/27/310937.htmlDoNeYDoNeYWed, 27 Jan 2010 06:25:00 GMThttp://www.aygfsteel.com/doneykoo/archive/2010/01/27/310937.htmlhttp://www.aygfsteel.com/doneykoo/comments/310937.htmlhttp://www.aygfsteel.com/doneykoo/archive/2010/01/27/310937.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/310937.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/310937.html
 1  1 
 2  2 #include "GL\glut.h"
 3  3 
 4  4 void Render()
 5  5 {
 6  6     glClearColor(0.00.00.30.0);
 7  7     glClear(GL_COLOR_BUFFER_BIT);
 8  8     glColor3f(1.00.50.5);
 9  9     glOrtho(0.01.00.01.0-1.01.0);
10 10     glBegin(GL_POLYGON);
11 11     {
12 12         glVertex3f(0.50.750.0);
13 13         glVertex3f(0.80.250.0);
14 14         glVertex3f(0.20.250.0);
15 15     }
16 16     glEnd();
17 17 
18 18     //glRectf(-0.5f,-0.5f,0.5f,0.5f);
19 19 
20 20     glFlush();
21 21 }
22 22 
23 23 int main( int argc, char * argv[] )
24 24 {
25 25     glutInit(&argc, argv);
26 26     glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE);
27 27     glutInitWindowPosition(100100);
28 28     glutInitWindowSize(400400);
29 29     glutCreateWindow("DoNeY's first OpenGL app");
30 30     glutDisplayFunc(&Render);
31 31     glutMainLoop();
32 32     return 0;
33 33 }
34 34 
35 



DoNeY 2010-01-27 14:25 发表评论
]]>
关于病毒与木马加载自׃及映像劫?/title><link>http://www.aygfsteel.com/doneykoo/archive/2009/10/21/299150.html</link><dc:creator>DoNeY</dc:creator><author>DoNeY</author><pubDate>Wed, 21 Oct 2009 02:01:00 GMT</pubDate><guid>http://www.aygfsteel.com/doneykoo/archive/2009/10/21/299150.html</guid><wfw:comment>http://www.aygfsteel.com/doneykoo/comments/299150.html</wfw:comment><comments>http://www.aygfsteel.com/doneykoo/archive/2009/10/21/299150.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/doneykoo/comments/commentRss/299150.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/doneykoo/services/trackbacks/299150.html</trackback:ping><description><![CDATA[<p>  大部分的病毒和木马都是通过加蝲pȝ启动Ҏq行的,也有一些是注册成ؓpȝ服务来启动,他们主要通过修改注册表来实现q个目的Q主要有以下几个键|</p> <p>  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsCurrent\Version\Run</p> <p>  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\AppInit_DLLs</p> <p>  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify</p> <p>  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsCurrent\Version\RunOnce</p> <p>  HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsCurrent\Version\RunServicesOnce</p> <p>  但是与一般的木马Q病毒不同的是,有一些病毒偏偏不通过q些来加载自己,不随着pȝ的启动运行。木马病毒的作者抓住了一些用L心理Q等到用 戯行某个特定的E序的时候它才运行。因Z般的用户Q只要发觉自q机子中了病毒Q首先要察看的就是系l的加蝲,很少有h会想?strong style="color: black; background-color: #ffff66;">映像</strong><strong style="color: black; background-color: #a0ffff;">劫持</strong>Q这也是q种病毒高明的地斏V?/p> <p>  <strong style="color: black; background-color: #ffff66;">映像</strong><strong style="color: black; background-color: #a0ffff;">劫持</strong>病毒主要通过修改注册表中?/p> <p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\</p> <p>Ҏ<strong style="color: black; background-color: #a0ffff;">劫持</strong>正常的程序,比如有一个病?vires.exe ?strong style="color: black; background-color: #a0ffff;">劫持</strong>qqE序Q它会在上面注册表的位置新徏一个qq.exe,再在q个下面新Z个字W串的键 debugger把其值改为C:\WINDOWS\SYSTEM32\VIRES.EXE(q里是病毒藏w的目录)卛_?/p> <img src ="http://www.aygfsteel.com/doneykoo/aggbug/299150.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/doneykoo/" target="_blank">DoNeY</a> 2009-10-21 10:01 <a href="http://www.aygfsteel.com/doneykoo/archive/2009/10/21/299150.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>WowDLLChecker_20091208_1.0.2.4http://www.aygfsteel.com/doneykoo/archive/2009/10/19/298838.htmlDoNeYDoNeYMon, 19 Oct 2009 05:56:00 GMThttp://www.aygfsteel.com/doneykoo/archive/2009/10/19/298838.htmlhttp://www.aygfsteel.com/doneykoo/comments/298838.htmlhttp://www.aygfsteel.com/doneykoo/archive/2009/10/19/298838.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/298838.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/298838.htmlPut this checker into your World of Warcraft directoy and execute it to check dangerous DLLs.


WowDLLChecker.exe  阅读全文

DoNeY 2009-10-19 13:56 发表评论
]]>
Where is Form's Loaded event? [FW]http://www.aygfsteel.com/doneykoo/archive/2009/10/16/298505.htmlDoNeYDoNeYFri, 16 Oct 2009 01:48:00 GMThttp://www.aygfsteel.com/doneykoo/archive/2009/10/16/298505.htmlhttp://www.aygfsteel.com/doneykoo/comments/298505.htmlhttp://www.aygfsteel.com/doneykoo/archive/2009/10/16/298505.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/298505.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/298505.html Where is Form's Loaded event?

[FW]http://weblogs.asp.net/kennykerr/archive/2004/11/26/where-is-form-s-loaded-event.aspx

Wow, it’s been a while since I last posted something here. We’ve recently moved to BC so I’ve been pretty distracted. I hope to be able to post more regularly in the coming weeks.

This is a bit off-topic for me but here goes.

Recently I needed to run some code right after a form is displayed for the first time. The Form.Load event is handy for performing various tasks when a form is loading but before it is displayed for the first time. Unfortunately there is no corresponding Form.Loaded event to notify the application that the form has actually loaded and is visible.

Fortunately it’s quite easy to pull it off without resorting to the WaitForInputIdle function. All you need to do is override Form’s OnLoad method and add an event handler for the Application.Idle event. Since we only want to be notified a single time that the form is loaded, we immediately remove the delegate in the event handler. You can of course register the event handler earlier in the form or application’s lifetime but I prefer to keep delegates registered for as short a period as possible.

Here’s a simple example:


 1 protected override void OnLoad(EventArgs args)
 2 {
 3     base.OnLoad(args);
 4 
 5     Application.Idle += new EventHandler(OnLoaded);
 6 }
 7 
 8 private void OnLoaded(object sender,
 9                       EventArgs args)
10 {
11     Application.Idle -= new EventHandler(OnLoaded);
12 
13     // TODO: add relevant code here
14 }
15 

This might be useful, for example, if you need to prompt the user (the horror!) for something but would prefer the dialog box to appear in the context of your application’s main window.


© 2004 Kenny Kerr



DoNeY 2009-10-16 09:48 发表评论
]]>
[share] 我的针对批处理文件bat,cmd的UltraEdit语法高亮wordfilehttp://www.aygfsteel.com/doneykoo/articles/298170.htmlDoNeYDoNeYWed, 14 Oct 2009 03:14:00 GMThttp://www.aygfsteel.com/doneykoo/articles/298170.htmlhttp://www.aygfsteel.com/doneykoo/comments/298170.htmlhttp://www.aygfsteel.com/doneykoo/articles/298170.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/298170.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/298170.html
  1 
  2 /L18"BAT_FILE" BAT_FILE_LANG Line Comment = rem Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = " File Extensions = bat cmd
  3 /Delimiters = ~!@^&*()-+=|/\{}[]:;"`'<> ,    .?
  4 /Function String = "call"
  5 /Function String 1 = "start"
  6 /Function String 2 = "%:"
  7 /Variable String = "^%[1-9a-zA-Z]++[12345^%]"
  8 /Indent Strings = "(" "if" "else"
  9 /Unindent Strings = ")"
 10 /Open Brace Strings =  "{" "(" "%"
 11 /Close Brace Strings = "}" ")" "%"
 12 /Open Fold Strings = "("
 13 /Close Fold Strings = ")"
 14 /C1"Keywords" STYLE_KEYWORD
 15 assoc    
 16 at       
 17 attrib   
 18 break    
 19 cacls    
 20 call     
 21 cd       
 22 chcp     
 23 chdir    
 24 chkdsk   
 25 chkntfs  
 26 cls      
 27 cmd      
 28 color    
 29 comp     
 30 compact  
 31 convert  
 32 copy     
 33 date     
 34 del      
 35 dir      
 36 diskcomp 
 37 diskcopy 
 38 doskey   
 39 echo     
 40 endlocal 
 41 erase    
 42 exit     
 43 fc       
 44 find     
 45 findstr  
 46 for      
 47 format   
 48 ftype    
 49 goto     
 50 graftabl 
 51 help     
 52 if       
 53 label    
 54 md       
 55 mkdir    
 56 mode     
 57 more     
 58 move     
 59 path     
 60 pause    
 61 popd     
 62 print    
 63 prompt   
 64 pushd    
 65 rd       
 66 recover  
 67 rem      
 68 ren      
 69 rename   
 70 replace  
 71 rmdir    
 72 set      
 73 setlocal 
 74 shift    
 75 sort     
 76 start    
 77 subst    
 78 time     
 79 title    
 80 tree     
 81 type     
 82 ver      
 83 verify   
 84 vol      
 85 xcopy    
 86 /C2"C++ Keywords" STYLE_KEYWORD
 87 /C3"Microsoft C extensions" STYLE_EXTENSION
 88 @
 89 %
 90 (
 91 )
 92 /C5"COLOR5" STYLE_COLOR5
 93 !
 94 %
 95 &
 96 *
 97 +
 98 -
 99 // /
100 <
101 = ==
102 >
103 ^
104 |
105 ~
106 /C6"COLOR6" STYLE_COLOR6
107 /C7"Variables"
108 ** % x%
109 /C8"Constant/Global/Symbol"
110 ** WII DEB FIN REL



DoNeY 2009-10-14 11:14 发表评论
]]>
UltraEdit 与Unix 正则表达?/title><link>http://www.aygfsteel.com/doneykoo/archive/2009/10/13/298100.html</link><dc:creator>DoNeY</dc:creator><author>DoNeY</author><pubDate>Tue, 13 Oct 2009 10:36:00 GMT</pubDate><guid>http://www.aygfsteel.com/doneykoo/archive/2009/10/13/298100.html</guid><wfw:comment>http://www.aygfsteel.com/doneykoo/comments/298100.html</wfw:comment><comments>http://www.aygfsteel.com/doneykoo/archive/2009/10/13/298100.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/doneykoo/comments/commentRss/298100.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/doneykoo/services/trackbacks/298100.html</trackback:ping><description><![CDATA[     摘要: UltraEdit 允许在搜索菜单下面列Z的许多搜索和替换功能中用正则表辑ּ。正则表辑ּ能让更多的复杂的搜烦和替换功能变成简单的操作。(中文版界面上昄?#8220;正规表达?#8221;Q?有两个可使用的语法集合。下面的W一表显C出?UltraEdit 的更早的版本被用的原来?UltraEdit 句法。第二表l出了可选的"Unix"cd的正则表辑ּ。这可以从配|单元启用?&n...  <a href='http://www.aygfsteel.com/doneykoo/archive/2009/10/13/298100.html'>阅读全文</a><img src ="http://www.aygfsteel.com/doneykoo/aggbug/298100.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/doneykoo/" target="_blank">DoNeY</a> 2009-10-13 18:36 <a href="http://www.aygfsteel.com/doneykoo/archive/2009/10/13/298100.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ruby操作excel文ghttp://www.aygfsteel.com/doneykoo/archive/2009/02/26/256755.htmlDoNeYDoNeYThu, 26 Feb 2009 02:25:00 GMThttp://www.aygfsteel.com/doneykoo/archive/2009/02/26/256755.htmlhttp://www.aygfsteel.com/doneykoo/comments/256755.htmlhttp://www.aygfsteel.com/doneykoo/archive/2009/02/26/256755.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/256755.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/256755.html

使用ruby来操作excel文g首先需要在脚本里包含以下语?br /> require 'win32ole'

把win32ole包含q来?可以通过和windows下的excel apiq行交互来对excel文gq行d?


打开excel文g,对其中的sheetq行讉K:
excel = WIN32OLE::new('excel.Application')
workbook = excel.Workbooks.Open('c:\examples\spreadsheet.xls')
worksheet = workbook.Worksheets(1) #定位到第一个sheet
worksheet.Select

d数据:
worksheet.Range('a12')['Value'] #da12中的数据
data = worksheet.Range('a1:c12')['Value'] #数据读入到一个二l表


扑ֈW一处a列的gؓI?/strong>
line = 1
while worksheet.Range("a#{line}")['Value']
   line=line+1
end #line的gؓW一处空白行的行?/p>


第一列的D入到一个数l中
line = '1'
data = []
while worksheet.Range("a#{line}")['Value']
   data << worksheet.Range("a#{line}:d#{line}")['Value']
   line.succ!
end


数据写入到excel表格?/strong>
worksheet.Range('e2')['Value'] = Time.now.strftime '%d/%m/%Y' #单个?br /> worksheet.Range('a5:c5')['Value'] = ['Test', '25', 'result'] #一个数l写?/p>


调用宏定?br /> excel.Run('SortByNumber')

讄背景?/strong>
worksheet.Range('a3:f5').Interior['ColorIndex'] = 36 #pale yellow
# 背景色恢复成无?br /> worksheet.Range('a3:f5').Interior['ColorIndex'] = -4142 # XlColorIndexNone constant
# 使用Excel constant 背景色恢复成无?br /> worksheet.Range('a3:f5').Interior['ColorIndex'] = ExcelConst::XlColorIndexNone


保存
workbook.Close(1)
# ?br /> workbook.SaveAs 'myfile.xls'
# 默认路径是系l定义的"我的文档"


l束会话
excel.Quit

一些相对完整的代码片段

创徏一个excel文gq保?/strong>
require 'win32ole'
excel = WIN32OLE.new("excel.application")
excel.visible = true     # in case you want to see what happens
workbook = excel.workbooks.add
workbook.saveas('c:\examples\spreadsheet1.xls')
workbook.close

操作excel文g的几个重要元?br /> Excel => workbook => worksheet => range(cell)
我理解的是excel为类?workbookZ个具体的(excel文g)实例,创徏好实例后,worksheet是实?workbook,工作?中的一个工作表,然后?/p>

以对工作表中的每个单元格(range(cell))q行具体的读?-----------------按照q样操作肯定没有?不过下面的这些语句又让我有些疑惑


excel.workbooks("Mappe1").worksheets("Tabelle1").range("a1").value #d名ؓMappe1的excel文g中工作表名ؓTabelle1的a1单元g的?br /> excel.worksheets("Tabelle1").range("a1").value #作用同第一条语?br /> excel.activeworkbook.activesheet.range("a1").value #作用同第一条语?br /> excel.activesheet.range("a1").value #作用同第一条语?br /> excel.range("a1").value #作用同第一条语?/p>

excel可以直接操作所有的属?默认为当前活跃的工作?工作?/p>


对单元格的操?

某个单元? sheet.range("a1")

a1到c3的?   sheet.range("a1", "c3") ?sheet.range("a1:c3")

W一?    sheet.range("a:a")

W三?    sheet.range("3:3")

获得单元格的?
range.text #d?q回为字W串格式,如果单元格内为数?有可能会被截断小数点后的位数
sheet.range("a1").text  

range.value #d?数字不会截断
sheet.range("a1").value      

对单元格讄?/strong>
sheet.range("a1").value = 1.2345
?br /> sheet.range("a1").value = '1.2345'

q代讉K:

sheet.range("a1:a10").each{|cell|puts cell.value}

如果范围是一个矩?则会按行循环q代讉K
sheet.range("a1:b5").each{|cell|puts cell.value}

blockq代,q打印出每行的第一个?br /> sheet.range("b3:c7").rows.each{|r|puts r.cells(1,1).value}



DoNeY 2009-02-26 10:25 发表评论
]]>
qsorthttp://www.aygfsteel.com/doneykoo/archive/2009/02/24/256441.htmlDoNeYDoNeYTue, 24 Feb 2009 07:58:00 GMThttp://www.aygfsteel.com/doneykoo/archive/2009/02/24/256441.htmlhttp://www.aygfsteel.com/doneykoo/comments/256441.htmlhttp://www.aygfsteel.com/doneykoo/archive/2009/02/24/256441.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/256441.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/256441.html 1 #include "stdafx.h"
 2 
 3 #include "stdlib.h"
 4 #include "string.h"
 5 #include "stdio.h"
 6 
 7 int cmp_i(const void *a, const void *b)
 8 {
 9     int res = *(int *)a - *(int *)b;
10     return res;
11 }
12 int cmp_s(const void *a, const void *b)
13 {
14     int res = strcmp((char *)a, (char *)b);
15     return res;
16 }
17 
18 int main()
19 {
20     int values[] = {3,3546,6134,1,234,12435,51,3,4,32,3241,34514,5};
21     char strs[][15= {"32","66","6134","1","234","12435","51","3","4","32","3241","34514","5"};
22 
23     printf("-------------------\nQsort int\n");
24     for(int i=0;i<10;i++)
25     {
26         printf("%d\t",values[i]);
27     }
28     printf("\n");
29     qsort(values, 10sizeof(int), cmp_i);
30     for(int i=0;i<10;i++)
31     {
32         printf("%d\t",values[i]);
33     }
34     printf("\n");
35     
36     printf("-------------------\nQsort str\n");
37     for(int i=0;i<10;i++)
38     {
39         printf("%s\t",strs[i]);
40     }
41     printf("\n");
42     qsort(strs, 10sizeof(char)*15, cmp_s);
43     for(int i=0;i<10;i++)
44     {
45         printf("%s\t",strs[i]);
46     }
47 
48 }
49 

DoNeY 2009-02-24 15:58 发表评论
]]>
游戏开发学习过E(q蝲?..Q(转自 威尔弗的I间Q?/title><link>http://www.aygfsteel.com/doneykoo/articles/249366.html</link><dc:creator>DoNeY</dc:creator><author>DoNeY</author><pubDate>Wed, 31 Dec 2008 10:04:00 GMT</pubDate><guid>http://www.aygfsteel.com/doneykoo/articles/249366.html</guid><wfw:comment>http://www.aygfsteel.com/doneykoo/comments/249366.html</wfw:comment><comments>http://www.aygfsteel.com/doneykoo/articles/249366.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/doneykoo/comments/commentRss/249366.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/doneykoo/services/trackbacks/249366.html</trackback:ping><description><![CDATA[<a >转自 Q?http://hi.baidu.com/welflau/blog/item/1b17032320bb05499358075e.html</a><br /> <br /> <span style="color: #000000"><a ><font color="#ffffff">http://hi.baidu.com/welflau/</font></a><font color="#ffffff">希望能保留原创作者链接,谢谢Q?/font></span><br /> <br /> <p>2008-12-02</p> <p><strong><font color="#ff0000" size="5">W?讌Ӏ创建框架?/font></strong></p> <p><font color="#ffffff"></font> </p> <p><br /> 1 新徏MFC exe / dialog based<br /> 2 删除dialogcȝ昄代码<br /> 3 dWelflGameFrmc?br /> 4 在appcȝInitInstance 函数?d<a ><font color="#ffffff">http://hi.baidu.com/welflau/</font></a><font color="#ffffff">希望能保留原创作者链接,谢谢Q?/font><br /> m_pMainWnd = new CWelflGameFrm;<br /> m_pMainWnd->ShowWindow( m_nCmdShow );<br /> m_pMainWnd->UpdateWindow();<br /> 5 CWelflGameFrm()构造函数改为public 成员<br /> 6 在构造函数CWelflGameFrm中添加:<br /> RECT rect;<br /> Create(NULL,"ch07-1: ミDirectGraphics");<br /> CClientDC dc(this);<br /> int width = dc.GetDeviceCaps(HORZRES);<br /> int height = dc.GetDeviceCaps(VERTRES);<br /> GetWindowRect( &rect );<br /> width = ( width - ( rect.right - rect.left ))/2 ;<br /> height = (height - (rect.bottom - rect.top ))/2 ;<br /> MoveWindow( width , height , (rect.right - rect.left ) , (rect.bottom - rect.top ) ,true);</p> <p>7 为CWelfGameFrmcL加WindowProc函数Qƈ加入代码Q?a ><font color="#ffffff">http://hi.baidu.com/welflau/</font></a><font color="#ffffff">希望能保留原创作者链接,谢谢Q?/font><br /> switch( message )<br /> {<br /> case WM_CREATE :<br />    if( !d3dCreate( m_hWnd , 640 , 480 , true ))<br />     PostMessage( WM_CLOSE );<br />    return 0 ;<br /> case WM_DESTROY :<br />    d3dRelease();<br />    return 0 ;<br /> }</p> <p>8 为工E添加两个文?br /> myd3d.cppQ?myd3d.h</p> <p>9 ~译出现<br /> fatal error C1010: unexpected end of file while looking for precompiled header directive<br /> 解决ҎQ在Project Settings里C++面的Precomplie Header里把出错源文件设|ؓ不用预~译头就可以了,详见视频</p> <p>10 BOOL CWelfGameApp::InitInstance()中的<br /> return FALSE;改ؓ return TRUE;</p> <p>11 为CWelfGameFrmcL加OnPaint响应<br /> d如下代码Q?br /> d3dClear(0);<br /> //<br /> d3d_Device->Present( NULL , NULL , NULL , NULL );</p> <br /> <br /> <br /> <p><font color="#ff0000" size="5"><strong>W?讌Ӏ绘制文字和囑փ?/strong></font></p> <p>目录<br /> 【一】、从DirectGraphic中获取DCQGDIQ?br /> 【二】?D囑փl制</p> <p><br /> 【一】、从DirectGraphic中获取DCQGDIQ?br /> 1 dcd3dHdc ?myd3d.h文g?br /> class d3dHdc <br /> {<br /> private :<br /> HDC m_hdc ;<br /> LPDIRECT3DSURFACE9 m_Surface ;</p> <p>public :<br /> void Release();<br /> inline operator HDC(){ return m_hdc ;};<br /> public :<br /> d3dHdc();<br /> ~d3dHdc();<br /> };</p> <p>2在myd3d.cpp中添加函数定?br /> d3dHdc::d3dHdc()<br /> {<br /> m_hdc = 0 ;<br /> m_Surface = 0 ;<br /> // 获得讑֤<br /> if( !d3d_Device )<br />    return ;<br /> if( d3d_Device->GetBackBuffer( 0 , 0 , D3DBACKBUFFER_TYPE_MONO , &m_Surface ) != D3D_OK )<br />    return ;<br /> <br /> m_Surface->GetDC( &m_hdc );<br /> }</p> <p>d3dHdc::~d3dHdc()<br /> {<br /> Release();<br /> }</p> <p>void d3dHdc::Release()<br /> {<br /> if( m_Surface )<br /> {<br />    if( m_hdc )<br />     m_Surface->ReleaseDC( m_hdc );<br />    m_Surface->Release();<br />   <br />    m_hdc = NULL ;<br />    m_Surface = NULL ;<br /> }<br /> <br /> }</p> <p>3 现在可以用他?br /> 在绘制函CdQ?br /> d3dHdc hdc ;<br />    SetTextColor( hdc , RGB( 255 , 255 , 255 ));<br />    SetBkMode( hdc , 1 );<br />    TextOut( hdc , 0 , 0 , str , strlen( str ));<br /> hdc.Release();</p> <p><br /> 【二】?D囑փl制<br /> 1 新徏d3dTexturec?br /> class d3dTexture<br /> {<br /> private :<br /> int      m_Width ;<br /> int      m_Height ;<br /> LPDIRECT3DTEXTURE9 m_Texture ;<br /> public :<br /> void BltFast( int x , int y );<br /> void BltFast( int l , int t , int r , int b );<br /> public :<br /> BOOL Create( LPCTSTR file );<br /> void Release();<br /> inline operator LPDIRECT3DTEXTURE9(){ return m_Texture ;};<br /> public :<br /> d3dTexture();<br /> ~d3dTexture();<br /> };</p> <p>2 q添加定义:</p> <p>/*////////////////////////////////////////////////<br /> 3D U理cd3dTexture 函数定义 2008-12-02</p> <p>/*////////////////////////////////////////////////</p> <p>d3dTexture::d3dTexture()<br /> {<br /> m_Texture = NULL ;<br /> }</p> <p>d3dTexture::~d3dTexture()<br /> {<br /> Release();<br /> }</p> <p>void d3dTexture::Release()<br /> {<br /> if( m_Texture )<br />    m_Texture->Release();<br /> m_Texture = NULL ;<br /> }</p> <p>BOOL d3dTexture::Create( LPCTSTR file )<br /> {<br /> D3DXIMAGE_INFO in ;<br /> memset( &in , 0 , sizeof( in ));<br /> // Hて<br /> Release();<br /> //?<br /> D3DXCreateTextureFromFileEx( d3d_Device ,<br />    file , D3DX_DEFAULT , D3DX_DEFAULT , <br />    0 , 0 , D3DFMT_UNKNOWN , D3DPOOL_MANAGED ,<br />    D3DX_DEFAULT , <br />    D3DX_DEFAULT , 0 , &in , NULL , &m_Texture );<br /> if( m_Texture == NULL )<br />    return false ;<br /> // 眔戈 <br /> m_Width = in.Width ;<br /> m_Height = in.Height ;<br /> <br /> return true ;<br /> }</p> <p>void d3dTexture::BltFast(int x, int y)<br /> {<br /> BltFast( x , y , x + m_Width , y + m_Height );<br /> }</p> <p>void d3dTexture::BltFast(int l , int t , int r , int b )<br /> {<br /> D3DTLVERTEX v[4] ;<br /> //郴翴 挡篶<br /> memset( v , 0 , sizeof( v ));<br /> v[0].x = v[3].x = (float)(l) ;<br /> v[1].x = v[2].x = (float)(r);<br /> v[0].y = v[1].y = (float)(t);<br /> v[2].y = v[3].y = (float)(b);<br /> <br /> v[0].rhw = v[1].rhw = v[2].rhw = v[3].rhw = <br />    v[0].z = v[1].z = v[2].z = v[3].z = 0.5f ;<br /> <br /> v[0].diffuse = v[1].diffuse = v[2].diffuse = v[3].diffuse = -1 ;<br /> <br /> v[1].tu = v[2].tu = 1.0f ;<br /> v[2].tv = v[3].tv = 1.0f ;<br /> //砞酶瓜家Α<br /> d3d_Device->SetTexture( 0 , m_Texture );<br /> d3d_Device->SetFVF( D3DFVF_TLVERTEX );<br /> d3d_Device->DrawPrimitiveUP( D3DPT_TRIANGLEFAN , 2 , (LPVOID)v , sizeof( D3DTLVERTEX ));<br /> <br /> <br /> }</p> <p>3 ~译时会出错<br /> 解决ҎQ?br /> 在myd3d.h文g中添?br /> #include "d3dx9tex.h"<br /> ?br /> #pragma comment(lib,"d3dx9.lib")<br /> 以及<br /> const DWORD D3DFVF_TLVERTEX = (D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_SPECULAR | D3DFVF_TEX1 );<br /> typedef struct _D3DTLVERTEX <br /> {<br /> float x , y , z , rhw ;<br /> D3DCOLOR diffuse , specular;<br /> float tu, tv;<br /> }D3DTLVERTEX ;</p> <p>4 在WelfGameFrm中添加两个成?br /> d3dTexture m_Bk ;<br /> d3dTexture m_Role ;</p> <p>5 在WelfGameFrm的Create响应dQ?br />    m_Bk.Create( "背景.tga" );<br />    m_Role.Create( "娃娃.tga" );</p> <p>6 调用BltFastq行l制<br /> //开始绘?br /> d3d_Device->BeginScene();<br /> d3d_Device->SetRenderState( D3DRS_CULLMODE , D3DCULL_NONE );<br /> d3d_Device->SetRenderState( D3DRS_ZENABLE , D3DZB_FALSE );<br /> m_Bk.BltFast( 0 , 0 );<br /> m_Role.BltFast( 0 , 0 );<br /> d3d_Device->EndScene();</p> <p>7 BltFast函数改进</p> <br /> <br /> <br /> <p><font color="#ff0000" size="5"><strong>W??WelfGame【图像透明及颜艌Ӏ?/strong></font></p> <p><a ><font color="#ffffff">http://hi.baidu.com/welflau/</font></a><font color="#ffffff">希望能保留原创作者链接,</font></p> <font color="#ffffff"> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000">【一】、实现透明囑փ</font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span><font face="Times New Roman">1 </font></span><span>?/span><span><font face="Times New Roman">RenderScene()</font></span><span>中添加设|代?/span></font></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000">在背景绘制前dQ?/font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 2">              </span>d3d_Device->SetRenderState( D3DRS_CULLMODE , D3DCULL_NONE );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 2">              </span>d3d_Device->SetRenderState( D3DRS_ZENABLE , D3DZB_FALSE );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 2">              </span>d3d_Device->SetRenderState( D3DRS_SHADEMODE , D3DSHADE_FLAT );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 2">              </span>d3d_Device->SetRenderState( D3DRS_ALPHABLENDENABLE, FALSE );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000">在前景绘制的前面d</font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetRenderState( D3DRS_SRCBLEND , D3DBLEND_SRCALPHA );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetRenderState( D3DRS_DESTBLEND , D3DBLEND_INVSRCALPHA );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );//</font></span><span>开启؜?/span></font></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"></p> <p> </p> <p> </p> <div forimg="1"> <p><img class="blogimg" src="http://hiphotos.baidu.com/welflau/pic/item/504b71f499455dc4f2d38591.jpg" border="0" small="0" alt="" /></p> <p> </p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span>效果</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"></p> <div forimg="1"><img class="blogimg" src="http://hiphotos.baidu.com/welflau/pic/item/8f175c4e81c0ee14b3de059c.jpg" border="0" small="0" alt="" /></div> </div> <p> </p> <font color="#ffffff"> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span><font face="Times New Roman">2 </font></span><span>?/span><span><font face="Times New Roman">d3dTexture</font></span><span>d</span><span><font face="Times New Roman">BltFast</font></span><span>函数</span></font></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font face="Times New Roman" color="#000000">void d3dTexture::BltFast(int l , int t , int r , int b , DWORD diffuse )</font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font face="Times New Roman" color="#000000">{</font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>D3DTLVERTEX v[4] ;</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>//</font></span><span>郴翴</span><span> 挡篶</span></font></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>memset( v , 0 , sizeof( v ));</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>v[0].x = v[3].x = (float)(l) ;</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>v[1].x = v[2].x = (float)(r);</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>v[0].y = v[1].y = (float)(t);</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>v[2].y = v[3].y = (float)(b);</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>v[0].rhw = v[1].rhw = v[2].rhw = v[3].rhw = </font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>v[0].z = v[1].z = v[2].z = v[3].z = <ST1:CHMETCNV tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue=".5" unitname="F">0.5f</ST1:CHMETCNV> ;</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>//</font></span><span>肅︹</span><span> </span></font></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>v[0].diffuse = v[1].diffuse = v[2].diffuse = v[3].diffuse = diffuse ;</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>v[1].tu = v[2].tu = <ST1:CHMETCNV tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="1" unitname="F">1.0f</ST1:CHMETCNV> ;</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>v[2].tv = v[3].tv = <ST1:CHMETCNV tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="1" unitname="F">1.0f</ST1:CHMETCNV> ;</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>//</font></span><span>砞酶瓜家Α</span></font></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetTexture( 0 , m_Texture );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetFVF( D3DFVF_TLVERTEX<span style="mso-spacerun: yes"> </span>);</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->DrawPrimitiveUP( D3DPT_TRIANGLEFAN , 2 , (LPVOID)v , sizeof( D3DTLVERTEX ));</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font face="Times New Roman" color="#000000">}</font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000">d以下几句Q?/font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-no-proof: yes"><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetTextureStageState( 0 , D3DTSS_ALPHAARG1 , D3DTA_TEXTURE );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-no-proof: yes"><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetTextureStageState( 0 , D3DTSS_ALPHAARG2 , D3DTA_DIFFUSE );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-no-proof: yes"><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetTextureStageState( 0 , D3DTSS_COLORARG1 , D3DTA_TEXTURE );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-no-proof: yes"><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetTextureStageState( 0 , D3DTSS_COLORARG2 , D3DTA_DIFFUSE );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-no-proof: yes"><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetTextureStageState( 0 , D3DTSS_COLOROP , D3DTOP_SELECTARG1 );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span style="mso-no-proof: yes"><font color="#000000"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>d3d_Device->SetTextureStageState( 0 , D3DTSS_ALPHAOP , D3DTOP_MODULATE );</font></font></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span style="mso-no-proof: yes"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>//</font></span><span style="mso-ascii-: yes">以下为前?/span></font></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><font color="#000000"><span style="mso-no-proof: yes"><font face="Times New Roman"><span style="mso-tab-count: 1">       </span>m_Role.BltFast( 100, 100, 250 ,250 ,D3DCOLOR_ARGB( 128 , 255 , 255 , 255 ));//</font></span><span style="mso-ascii-: yes">最后一个参Cؓ颜色Q包括透明?/span></font></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt"><span><font color="#000000">效果?/font></span></p> <p> </p> <div forimg="1"> <p><img class="blogimg" src="http://hiphotos.baidu.com/welflau/pic/item/5df00524153ce62ec895599f.jpg" border="0" small="0" alt="" /></font></font></p> </div> <img src ="http://www.aygfsteel.com/doneykoo/aggbug/249366.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/doneykoo/" target="_blank">DoNeY</a> 2008-12-31 18:04 <a href="http://www.aygfsteel.com/doneykoo/articles/249366.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JavaScript 仿LightBox内容昄效果、拖放效果和渐变效果http://www.aygfsteel.com/doneykoo/articles/249363.htmlDoNeYDoNeYWed, 31 Dec 2008 09:59:00 GMThttp://www.aygfsteel.com/doneykoo/articles/249363.htmlhttp://www.aygfsteel.com/doneykoo/comments/249363.htmlhttp://www.aygfsteel.com/doneykoo/articles/249363.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/249363.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/249363.htmlJavaScript 仿LightBox内容昄效果

详解定位与定位应?/a>

拖放效果?a >渐变效果

DoNeY 2008-12-31 17:59 发表评论
]]>
CString,int,string,char*之间的{换(转) http://www.aygfsteel.com/doneykoo/articles/249360.htmlDoNeYDoNeYWed, 31 Dec 2008 09:43:00 GMThttp://www.aygfsteel.com/doneykoo/articles/249360.htmlhttp://www.aygfsteel.com/doneykoo/comments/249360.htmlhttp://www.aygfsteel.com/doneykoo/articles/249360.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/249360.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/249360.html转自http://www.cppblog.com/ACM-Boy/archive/2008/12/31/70843.html

string ?CString  
CString.format("%s", string.c_str());  

char ?CString  
CString.format("%s", char*);  

char ?string  
string s(char *);  

string ?char *  
char *p = string.c_str();  

CString ?string  
string s(CString.GetBuffer());  

1Qstring -> CString  
CString.format("%s", string.c_str());  
用c_str()实比data()要好.  
2Qchar -> string  
string s(char *);  
你的只能初始化,在不是初始化的地Ҏ好还是用assign().  
3,CString -> string  
string s(CString.GetBuffer());  
GetBuffer()后一定要ReleaseBuffer(),否则没有释攄冲区所占的I间. 



DoNeY 2008-12-31 17:43 发表评论
]]>
[FW] 在UltraEdit里正显CLua的块注释Q语法着Ԍhttp://www.aygfsteel.com/doneykoo/articles/235729.htmlDoNeYDoNeYTue, 21 Oct 2008 09:35:00 GMThttp://www.aygfsteel.com/doneykoo/articles/235729.htmlhttp://www.aygfsteel.com/doneykoo/comments/235729.htmlhttp://www.aygfsteel.com/doneykoo/articles/235729.html#Feedback0http://www.aygfsteel.com/doneykoo/comments/commentRss/235729.htmlhttp://www.aygfsteel.com/doneykoo/services/trackbacks/235729.html 

Origin Link http://blog.2ndboy.net/?p=116#comment-3104
Thanks to 2ndboy


?UltraEdit 里正显C?Lua 的块注释QDoNeY注:语法着色问题)

  我算得上?UltraEdit 的铁杆用户啦Q虽然是 D 版用?)Q,所以写 Lua E序当然?UltraEdit 啦!?UltraEdit 支持 Lua 的语法高亮很单,?UE 的官|?/a>Q下?Lua 的语法文?/a>集成在自带的语法高亮文g里就可以啦?/p>

  但是 UE 官网上这个语法文件貌似比较旧Q是 02 q?8 月发布的Q块注释居然用的?#8220;[[”?#8220;]]”Q?#8220;Block Comment On = [[ Block Comment Off = ]]”。于是手工改?#8220;Block Comment On = –[[ Block Comment Off = –]]”保存Q结果发现行注释“–”是可以正显C的Q但是块注释只能显C快注释开始标记所在的那一行。貌似是 UE ?bugQ估计跟行注释有冲突Q因法文仉是这么写?#8220;Line Comment = ?Block Comment On = –[[ Block Comment Off = –]]”。试了一下把行注释放在块注释后面也不行,开?GoogleQ结果在 UE 的论坛上扑ֈ?a target="_blank" _fcksavedurl="http://www.ultraedit.com/index.php?name=Forums&file=viewtopic&t=3054">{案?/p>

  ?Lua 的语法文件第一行改成如下这个样子就可以啦:

 

/L12″Lua” Block Comment On = --[[ Block Comment Off = ]] Block Comment On Alt = -- Escape Char = \ String Chars = “‘ File Extensions = LUA



QDoNeY注:哈,l于有了解决ҎQ下面听作者讲一下这一微小滴奥妙所在)

  查了一?UE 的帮助文档,上面?#8220;Block Comment On Alt”的描q是q样?#8220;The second set of block comments are in the form “Block Comment On Alt = ” and “Block Comment Off Alt = ” followed by up to five characters each that define the comment designators. If a Block Comment On Alt is defined but the Block Comment Off Alt is not defined the commenting will stop at the end of the line.”。看来块注释指示器有两种Q这个办法还真是比较巧妙Q但是要熟读 UE 文档才能想的到呀?br /> QDoNeY注:意即如果ultraedit在wordfile中对某个语言的语法着色只定义其Block Comment On Alt =作ؓW二U块注释的v始符P而不定义W二U块注释的结束符号Block Comment Off Alt =Q那么这个Block Comment On Alt 所定义的符号将会只注释掉从W号开始至行尾的部分,也就相当于换一个方法定义了行注释的W号了)

  改完以后再看 Lua 代码里的块注释,现在已经可以完美昄?D



DoNeY 2008-10-21 17:35 发表评论
]]>
Making Draggable Frames 【ؓwow插g~写可拖动的Frame?/title><link>http://www.aygfsteel.com/doneykoo/articles/235708.html</link><dc:creator>DoNeY</dc:creator><author>DoNeY</author><pubDate>Tue, 21 Oct 2008 08:11:00 GMT</pubDate><guid>http://www.aygfsteel.com/doneykoo/articles/235708.html</guid><wfw:comment>http://www.aygfsteel.com/doneykoo/comments/235708.html</wfw:comment><comments>http://www.aygfsteel.com/doneykoo/articles/235708.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/doneykoo/comments/commentRss/235708.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/doneykoo/services/trackbacks/235708.html</trackback:ping><description><![CDATA[<br /> FW: <u><em><a target="_blank" >http://www.wowwiki.com/Making_Draggable_Frames</a></em></u><br /> <br /> <h2><span id="wmqeeuq" class="mw-headline">XML Declarations </span></h2> <p>First, the XML tags movable="true" and enableMouse="true" must be in the frames declaration. Note: Some frame templates like 'button' already include enableMouse="true". </p> <p>Example: </p> <br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000ff;"><</span><span style="color: #800000;">Frame </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="TellTrackFrame"</span><span style="color: #ff0000;"> enableMouse</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> movable</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> resizable</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> parent</span><span style="color: #0000ff;">="UIParent"</span><span style="color: #ff0000;"> hidden</span><span style="color: #0000ff;">="true"</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span></div> <br /> <h2><span id="wmqeeuq" class="mw-headline">Simple Dragging </span></h2> One simple way to detect drag is to add OnDragStart and OnDragStop script elements to the frame: <br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000ff;"><</span><span style="color: #800000;">Scripts</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"><</span><span style="color: #800000;">OnLoad</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />  this:RegisterForDrag("LeftButton");<br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">OnLoad</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"><</span><span style="color: #800000;">OnDragStart</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />  this:StartMoving();<br />  this.isMoving = true;<br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">OnDragStart</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"><</span><span style="color: #800000;">OnDragStop</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />  this:StopMovingOrSizing();<br />  this.isMoving = false;<br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">OnDragStop</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">Scripts</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span></div> <br /> <h2><span id="wmqeeuq" class="mw-headline">Advanced Dragging </span></h2> Another way, which is more responsive but requires an onhide element so that the frame wont get stuck to the mouse: <br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000ff;"><</span><span style="color: #800000;">Scripts</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"><</span><span style="color: #800000;">OnMouseUp</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />  if ( this.isMoving ) then<br />   this:StopMovingOrSizing();<br />   this.isMoving = false;<br />  end<br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">OnMouseUp</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"><</span><span style="color: #800000;">OnMouseDown</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />  if ( ( ( not this.isLocked ) or ( this.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then<br />   this:StartMoving();<br />   this.isMoving = true;<br />  end<br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">OnMouseDown</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"><</span><span style="color: #800000;">OnHide</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />  if ( this.isMoving ) then<br />   this:StopMovingOrSizing();<br />   this.isMoving = false;<br />  end<br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">OnHide</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">Scripts</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span></div> <br /> Note: this method also demonstrates an optional isLocked parameter to determine whether you can drag the frame or not. <br /> <br /> <h2><span id="wmqeeuq" class="mw-headline">Parent Dragging </span></h2> Some advanced dragging addons use overlays that make default Blizzard frames draggable. This is possible by using GetParent when starting and stopping drag. To do this, one must make the parent frame movable through the use of the SetMovable widget function, i.e. <tt><em>frame</em>:SetMovable(true)</tt>. One drawback with overlay frames that are mouse enabled is that they will prevent the parent frame's click script tags from being called so you often have to simulate their click events. <br /> <br /> <h2><span id="wmqeeuq" class="mw-headline">Quick Dragging Code </span></h2> While somewhat untested there is an easier and more automatic way to activate dragging. If you have your <Frame> delcaration attributes "enableMouse" and "movable" set to true, dragging may be accomplished by adding a <TitleRegion> tag inside of your <Frame> <br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000ff;"><</span><span style="color: #800000;">Frame </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="myname"</span><span style="color: #ff0000;"> frameStrata</span><span style="color: #0000ff;">="HIGH"</span><span style="color: #ff0000;"> toplevel</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> enableMouse</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> movable</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> parent</span><span style="color: #0000ff;">="UIParent"</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />  </span><span style="color: #0000ff;"><</span><span style="color: #800000;">TitleRegion </span><span style="color: #ff0000;">setAllPoints</span><span style="color: #0000ff;">="true"</span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />  <img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /><br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">Frame</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span></div> <br /> <p>I haven't discovered any adverse side effects to doing this yet, I am not even sure if this is the intended use for it. </p> <p>Using this method can result in the frame not responding to other mouse events, also both mouse buttons will drag the frame. </p> <p><br /> You can also specify <Size> and <Anchors> within <TitleRegion>, e.g. <br /> </p> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000ff;"><</span><span style="color: #800000;">Frame </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="myname"</span><span style="color: #ff0000;"> frameStrata</span><span style="color: #0000ff;">="HIGH"</span><span style="color: #ff0000;"> toplevel</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> enableMouse</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> movable</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> parent</span><span style="color: #0000ff;">="UIParent"</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />  </span><span style="color: #0000ff;"><</span><span style="color: #800000;">TitleRegion</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />   </span><span style="color: #0000ff;"><</span><span style="color: #800000;">Size</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />    </span><span style="color: #0000ff;"><</span><span style="color: #800000;">AbsDimension </span><span style="color: #ff0000;">x</span><span style="color: #0000ff;">="200"</span><span style="color: #ff0000;"> y</span><span style="color: #0000ff;">="20"</span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />   </span><span style="color: #0000ff;"></</span><span style="color: #800000;">Size</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />   </span><span style="color: #0000ff;"><</span><span style="color: #800000;">Anchors</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />    </span><span style="color: #0000ff;"><</span><span style="color: #800000;">Anchor </span><span style="color: #ff0000;">point</span><span style="color: #0000ff;">="TOP"</span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />   </span><span style="color: #0000ff;"></</span><span style="color: #800000;">Anchors</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />  </span><span style="color: #0000ff;"></</span><span style="color: #800000;">TitleRegion</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />  <img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /><br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">Frame</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span></div> <br /> This way, your <Frame> can still receive mouse events, and you can only drag it by clicking within its <TitleRegion>. <br /> <br /> <h2><span id="wmqeeuq" class="mw-headline">Lua Only Approach </span></h2> If your frame is called MyFrame - <br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;">MyFrame</span><span style="color: #000000;">:</span><span style="color: #000000;">SetMovable(</span><span style="color: #0000ff;">true</span><span style="color: #000000;">)<br /> MyFrame</span><span style="color: #000000;">:</span><span style="color: #000000;">EnableMouse(</span><span style="color: #0000ff;">true</span><span style="color: #000000;">)<br /> MyFrame</span><span style="color: #000000;">:</span><span style="color: #000000;">SetScript(</span><span style="color: #000000;">"</span><span style="color: #000000;">OnMouseDown</span><span style="color: #000000;">"</span><span style="color: #000000;">,</span><span style="color: #0000ff;">function</span><span style="color: #000000;">()<br />   MyFrame</span><span style="color: #000000;">:</span><span style="color: #000000;">StartMoving()<br /> </span><span style="color: #008080;">end</span><span style="color: #000000;">)<br /> MyFrame</span><span style="color: #000000;">:</span><span style="color: #000000;">SetScript(</span><span style="color: #000000;">"</span><span style="color: #000000;">OnMouseUp</span><span style="color: #000000;">"</span><span style="color: #000000;">,</span><span style="color: #0000ff;">function</span><span style="color: #000000;">()<br />   MyFrame</span><span style="color: #000000;">:</span><span style="color: #000000;">StopMovingOrSizing()<br /> </span><span style="color: #008080;">end</span><span style="color: #000000;">)<br /> </span></div> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <img src ="http://www.aygfsteel.com/doneykoo/aggbug/235708.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/doneykoo/" target="_blank">DoNeY</a> 2008-10-21 16:11 <a href="http://www.aygfsteel.com/doneykoo/articles/235708.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">人</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ͽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɿ</a>| <a href="http://" target="_blank">廪</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ϽϽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">²</a>| <a href="http://" target="_blank">¡</a>| <a href="http://" target="_blank">ƺ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ӷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ؿ˹</a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>