Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15795

GetMenu returns 0

$
0
0
Even though there are menus and sub menus I get 0
Code:

Dim AppHwnd As Long
 
AppHwnd = FindWindow(vbNullString, "Project1 - Microsoft Visual Basic [run]")
hMenubar = GetMenu(AppHwnd)
  '
  '

but when I use Notepad I get valid handle.
Code:

Dim AppHwnd As Long
 
AppHwnd = FindWindow(vbNullString, "Untitled - Notepad")
hMenubar = GetMenu(AppHwnd)
  '
  '


Viewing all articles
Browse latest Browse all 15795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>