首先感谢大家的帮助,现在又有了一些问题,再请教!!
1:等待一段时间:
init:=now;
while now<init+encodetime(0,0,0,50) do 
application.processmessages;这里的encodetime(0,0,0,50)是什么用的?
2:下面的代码:
var wndhandle:thandle;
wndclass:array[0..50] of char;
strpcopy(@wndclass[0],'shell_traywnd');
wndhandle:=findwindow(@wndclass[0],nil);
showwindow(wndhandle,sw_hide);这是隐藏任务栏的代码,有两点不懂,strpcopy是什么意思?还有在一开始定义了一个char的数组,在用的时候怎么是@wndclass[0]?
3:还有一个是最新想到的,我按书上作程序的时候想到,用tcanvas来得到屏幕的canvas和画图程序结合,不就可以在屏幕上画画了?这里有两个问题,一是只有本来就有的mousemove事件,而且是在form上的,就是说说只有鼠标在form上移动才会触发事件,我的意思是就算form最小化也能靠鼠标在桌面或者是其他窗口里的mousemove来触发代码,这个能实现吗?第二个就是坐标转化的问题,我再form里面移动鼠标,在桌面上线条的就是好像把form移到screen的(0,0)的位置来画的,现在知道坐标转换的作用了,.clienttoscreen是这个作用吧?具体的用法是怎样?edit1.clienttoscreen(0,0)究竟是什么意思?返回的tpoing又是有什么用?我发现form是没有.clienttoscreen的事件的,怎么回事?
4。还剩下的是上一次还没有搞明白的,我再贴出来
handled:=true;是什么用到的,我忘记对象了,就是##.handled:=true?
inherited是继承父类的所有代码?我不太明白?
再问一下releasecapture是什么意思?

解决方案 »

  1.   

    1. encodetime()是将四个整数合成为时间格式,同样的函数还有encodeDate, encodeDateTime
       与此相反的函数,将时间格式分解为整数,有DecodeTime, DecodeDate, DecodeDateTime等。
    2. StrpCopy将字符串拷贝到指针中,数组的第一个元素的地址就是数组的首地址(在C中应该学过)
    3. **.ClientToSrceen()将控件内的相对坐标转换为屏幕坐标,**.SrceenToClient()则相反。
    其参数必须是TPoint类型。Form是有上述事件的。鼠标右键的弹出菜单是以屏幕坐标为基点弹出的,如PopupMenu1.Popup(x,y); 这里的x, y必须是屏幕坐标。
    4. inherited是继承,至于如何继承,关系到类的定义,和特定程序语言的规范其它的不知道
      

  2.   

    releasecapture使用来释放鼠标的
    请看帮助
    The ReleaseCapture function releases the mouse capture from a window in the current thread and restores normal mouse input processing. A window that has captured the mouse receives all mouse input, regardless of the position of the cursor, except when a mouse button is clicked while the cursor hot spot is in the window of another thread. BOOL ReleaseCapture(VOID)
     ParametersThis function has no parameters. Return ValuesIf the function succeeds, the return value is nonzero.
    If the function fails, the return value is zero. ResAn application calls this function after calling the SetCapture function. 
    Windows 95: Calling this function causes the window that is losing the mouse capture to receive a WM_CAPTURECHANGED message.
      

  3.   

    1. encodetime()是将四个整数合成为时间格式
    2. StrpCopy将字符串拷贝到指针中4. inherited是继承
      

  4.   

    edit1.clienttoscreen(0,0)究竟是什么意思//   edit1 控件的左上角在屏幕中的坐标。
    返回的tpoing又是有什么用?//一个类型 ,就是一个点坐标。
    我发现form是没有.clienttoscreen的事件的,怎么回事?//你再仔细看看,是没有这个时间,但有这个方法的。
      

  5.   

    还有最后一个,就是handled的问题,自己都忘了当初是在那里看到的,当初就是看到问题就记在纸上,现在后悔没有记清楚了