VBasic±à³Ì֮·£­ÈçºÎÈýçÃæÃÀ»¯(2)_VB.net_ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØ--Powered by WWW.RONGSEN.COM.CN

VBasic±à³Ì֮·£­ÈçºÎÈýçÃæÃÀ»¯(2)

×÷ÕߣººÚ¿Í·ÀÏßÍø°²VB½Ì³Ì»ùµØ À´Ô´£ººÚ¿Í·ÀÏßÍø°²VB½Ì³Ì»ùµØ ä¯ÀÀ´ÎÊý£º0

±¾Æª¹Ø¼ü´Ê£º½çÃæÃÀ»¯ÈçºÎ±à³Ì
ºÚ¿Í·ÀÏßÍø°²ÍøѶ£º   PublicDeclareFunctionSendMessageLib"user32"Alias"SendMessageA"£¨ByValhwndAsLong£¬ByValwMsgAsLong£¬ByValwParamAsLong£¬lParamAsAny£©AsLong¡¯Õâ¸ö¸Ã²»Òª°³¶à½éÉÜÁË°ÉPublicConstHT...
   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
    ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤·½°¸±¾ÆªÁ¬½Ó£ºhttp://www.rongsen.com.cn/show-14960-1.html
Íøվά»¤½Ì³Ì¸üÐÂʱ¼ä:2012-04-03 01:17:11  ¡¾´òÓ¡´ËÒ³¡¿  ¡¾¹Ø±Õ¡¿
ÎÒÒªÉêÇë±¾Õ¾£ºNµã | ºÚ¿Í·ÀÏß¹ÙÍø |  
רҵ·þÎñÆ÷ά»¤¼°Íøվά»¤ÊÖ¹¤°²È«´î½¨»·¾³£¬ÍøÕ¾°²È«¼Ó¹Ì·þÎñ¡£ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØÕÐÉ̽øÐÐÖУ¡QQ:29769479

footer  footer  footer  footer