龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 软件开发 > VB开发 >

建立无模式窗口

时间:2009-12-30 15:42来源:未知 作者:admin 点击:
分享到:
makeanewproject;twoforms onform1acommandbutton putthecodeintherightplaces pressF5 SubForm2_load() intheform2_loadevent besuretomaketheform2smallerthenform1! lngOrigParenthWnd=SetWindowWord(Me.hwnd,-8,mdiMain.hwnd) EndSub PrivateSubForm_Unloa
'makeanewproject;twoforms
  'onform1acommandbutton
  'putthecodeintherightplaces
  'pressF5
  
  SubForm2_load()
  'intheform2_loadevent
  'besuretomaketheform2smallerthenform1!
  lngOrigParenthWnd=SetWindowWord(Me.hwnd,-8,mdiMain.hwnd)
  
  EndSub
  
  PrivateSubForm_Unload(CancelAsInteger)
  'intheform2_unloadevent
  DimlngResult&
  
  lngResult=SetWindowWord(Me.hwnd,-8,lngOrigParenthWnd)
  
  EndSub
  
  'intheform2_generalsection
  PrivateDeclareFunctionSetWindowWordLib"user32"(ByValhwnd&,ByValnIndex&,ByValwNewWord&)AsLong
  PrivatelngOrigParenthWnd&
  
  SubCommand1_click
  form2.Show
  
  EndSub->

精彩图集

赞助商链接