PublicDeclareFunctionSendMessageLib"user32"Alias"SendMessageA"£¨ByValhwndAsLong
£¬ByValwMsgAsLong
£¬ByValwParamAsLong£¬lParamAsAny£©AsLong¡¯Õâ¸ö¸Ã²»Òª°³¶à½éÉÜÁË°É
PublicConstHTCAPTION£½2¡¯´ú±í´°ÌåµÄ±êÌâÇø
PublicConstWM_NCLBUTTONDOWN£½&HA1¡¯±íʾ·Ç¹¤×÷Çø×ó¼ü°´ÏÂ
¡¡¡¡ÔÀíºÜ¼òµ¥£¬Ð¶ÏÂÊó±ê×·×ÙÆ÷ºóÏòForm·¢ËÍÒ»¸öÒƶ¯´°ÌåµÄÏûÏ¢£¬Æäʵ×öµ½ÕâÒ»µãµÄ·½·¨ºÜ¶à£¬µ«°³¸öÈËÈÏΪÕâÒ»ÖÖ×î¼òµ¥£¬Ìí¼ÓÒ»¸ö¹ý³Ì:
PublicSubMoveForm£¨hWndAsLong£©
DoEvents
ReleaseCapture
SendMessagehWnd£¬WM_NCLBUTTONDOWN£¬HTCAPTION£¬0&
EndSub
ÔÚFormµÄMouseMoveʼþÖÐ:
PrivateSubForm_MouseMove£¨ButtonAsInteger£¬ShiftAsInteger£¬XAsSingle£¬YAsSingle£©
IfButton£½vbLeftButtonThenMoveFormhWnd¡¯Èç¹û°´ÏÂÊó±ê×ó¼ü¾ÍÒƶ¯´°Ìå
EndSub
̨ϵÄÕâλС½ãÓÖÄÉÃÆÁË£¬¿ÉÊǹâͺͺµÄ´°ÌåûÓÐÁ˱êÌâÀ¸Ò²²»ºÃ¿´£¬°³ÒªÏòÕâΪС½ãÍƼö°³µÄ¶«¶«£ActiveX¿Ø¼þ£¬ToolSign£¬ÐèÒªµÄÈË¿ÉÒÔдПø°³ÁªÏµ£¬
¸Ã¿Ø¼þÐèÒªÔÚ´úÂë±à¼ÇøÓòÄÚÌí¼ÓһϴúÂë:
¡¯Ò»ÏÂÉùÃ÷ÊÇÓÃÔÚToolSignµÄAutoQuitÊôÐÔµÄ
PublicConstEXIT_FORCE£½2¡¯×¢Ò⣬ÔÚVBÖÐÔËÐеÄʱºòÈç¹ûÑ¡ÓôËÍ˳ö·½Ê½£¬VBÒ²»áÍ˳ö
PublicConstEXIT_MESSAGE£½1¡¯ÓɲÙ×÷ϵͳ·¢Ë͹رÕÏûÏ¢
PublicConstEXIT_CUSTOM£½Not£¨EXIT_FORCEOrEXIT_MESSAGE£©¡¯×Ô¶¨Òå
½«Æä×¢²áºóÔÚ²¿¼þÀ¸ÖаÑe£DogkidStudioToolsSign´ò¹³£¬Ìí¼Óµ½¹¤¾ßÏäÖУ¬Ë«»÷¼ÓÈëµ½´°ÌåÖУ¬
ÔÚFormµÄLoadʼþÖÐÌí¼Óһϳõʼ»¯´úÂë:
PrivateSubForm_Load£¨£©
WithSign1
.AutoQuit£½EXIT_CUSTOM
.ParentsHWND£½hWnd¡¯ÌîÁË´ËÊôÐÔ¿ÉÒÔÖ±½ÓÓÃToolSignÀ´Òƶ¯´°Ìå¶ø²»ÐèҪǰÃæµÄ´úÂë
EndWith
EndSub
Sign1µÄClickʼþ
PrivateSubSign1_Click£¨£©
End¡¯¹Ø±Õ³ÌÐò
EndSub
ÔÚFormµÄResizeʼþÖÐÌí¼ÓһϴúÂë:
PrivateSubForm_Resize£¨£©
Sign1.Width£½Width
EndSub
Èç¹ûÏëÈô°Ìå¿ÉÒԸıä´óÐ
¡£¬¿ÉÒÔÐÞ¸ÄÒ»ÏÂÊôÐÔ
Caption""
BorderStyle2»ò5
ControlBoxFalse
¡¡¡¡²»ÖªµÀ¸÷λ¿´¹Ø¼û¹ý±¬Õ¨ÊԵĴ°ÌåûÓÐ?£¬Ã»Óмû¹ý¿ÉÒÔ´Ó°³ÒªÁíÍâÒ»¸ö°³×Ô¼ºµÄActiveXDLL£¬ÎÒµÄÄǸö¶«¶«ÆäʵÊǸøÎÒµÄSoftware×÷ÔËÐпâµÄ£¬¸÷λÈô²»ÏÓÆú£¬¿ÉÒÔÓÃÓã¬×¢²áºóÔÚ¹¤³Ì£>ÒýÓã>e£DogkidRuntimeLibrary
È»ºóÔÚ´°ÌåLoadʼþÖÐÊäÈë:
PrivateSubForm_Load(£©
DimSystemAse_Dogkid_Runtime_Library.System
SetSystem£½Newe_Dogkid_Runtime_Library.System
Show
System.BoomIthDC£¬60£¬Width£¬Height£¬Left£¬Top
SetSystem£½Nothing
EndSub