国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
VB入門技巧N例(7)
userphoto

2011.01.31

關注
22.右鍵托盤圖標后必須電擊他才可以消失,怎么辦?
Case WM_RBUTTONUP '鼠標在圖標上右擊時彈出菜單
      SetForegroundWindow Me.hwnd
        Me.PopupMenu mnuTray
加一句 SetForegroundWindow Me.hwnd

23. 將progressbar嵌入statusbar中
  1. Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal _ hWndNewParent As Long) As Long
  2. Private Sub Command1_Click()
  3.     With ProgressBar1
  4.         .Max = 1000
  5.         Dim i As Integer
  6.         For i = 1 To 1000
  7.             .Value = i
  8.         Next i
  9.     End With
  10. End Sub
  11. Private Sub Form_Load()
  12.     ProgressBar1.Appearance = ccFlat
  13.     SetParent ProgressBar1.hWnd, StatusBar1.hWnd
  14.     ProgressBar1.Left = StatusBar1.Panels(1).Left
  15.     ProgressBar1.Top = 100
  16.     ProgressBar1.Width = StatusBar1.Panels(1).Width - 50
  17.     ProgressBar1.Height = StatusBar1.Height - 150
  18. End Sub   '相對位置你可以自己再調一下
復制代碼

24.使你的程序界面具有XP風格 產生一個和你的可執(zhí)行程序同名的后綴為exe.manifest的文件,并和可執(zhí)行文件放在同一路徑中。
代碼中加入:
  1. Private  Declare Sub InitCommonControls Lib "comctl32.dll" ()
  2. Private Sub Form_Initialize()
  3.     InitCommonControls
  4. End Sub
復制代碼

注意:
1 工具欄控件一定要用Microsoft Windows Common Controls 5.0,而不要用Microsoft Windows Common Controls 6.0。因為此

InitCommonControls API函數是位于comctl32.dll(Microsoft Windows Common Controls 5.0控件的動態(tài)鏈接庫中)。
2 放在FRAME控件中的單遠按鈕有些“麻煩”!為了解決此問題,可以將單選按鈕放在PICTURE控件中(以PICTURE控件作為容器),再將

PICTURE控件放在FRAME控件中,就可以了。
3 必須編譯之后才能看到效果
exe.manifest文件中的內容,可用notepad編輯。
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  3. <assemblyIdentity
  4. version="1.0.0.0"
  5. processorArchitecture="X86"
  6. name="CompanyName.ProductName.YourApp"
  7. type="win32"
  8. />
  9. <description>Your application description here.</description>
  10. <dependency>
  11. <dependentAssembly>
  12. <assemblyIdentity
  13. type="win32"
  14. name="Microsoft.Windows.Common-Controls"
  15. version="6.0.0.0"
  16. processorArchitecture="X86"
  17. publicKeyToken="6595b64144ccf1df"
  18. language="*"
  19. />
  20. </dependentAssembly>
  21. </dependency>
  22. </assembly>
復制代碼
本站僅提供存儲服務,所有內容均由用戶發(fā)布,如發(fā)現有害或侵權內容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
自己的IE——用VB制作瀏覽器
如何讓VB程序穿上漂亮外衣 — Windows Live
InitCommonControls 和 InitCommonControlsEx
vb 簡單彩色進度條代碼 |VB 網|VB 視頻教程|VB編程入門網
VB基礎狀態(tài)欄(StatusBar)和工具欄(ToolBar)
學習使用microsoft windows common controls 6.0 (sp6)中幾個常用控件
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯系客服!

聯系客服